Mock
4 posts tagged with "Mock"
fake
function
The fake action fakes items. It belongs to the mock category within the dev area.
Action Syntax
fake address
A value
fake 123 addresses
A numeric value followed by a value
fake company
A value
fake 123 companies
A numeric value followed by a value
fake email
A value
fake 123 emails
A numeric value followed by a value
fake name
A value
fake 123 names
A numeric value followed by a value
fake line
A value
fake 123 lines
A numeric value followed by a value
Return Value
This function returns a
GROUP
value that can be stored in a variable:
fake-date
The fake-date action sets a fake date (for testing). It belongs to the mock category within the dev area.
Action Syntax
fake-date YYYY-MM-DD
A date in YYYY-MM-DD format
fake-date YYYY-MM-DD HH:MM
A date in YYYY-MM-DD format followed by A time in HH:MM format
Valid sizes
tiny
small
medium
large
extra
Examples
// Basic Usage
fake-date 2024-12-04
Action code: 559205575
Version: 0.6.4
Last updated: 2025-06-13
fake-table
function
The fake-table action creates a fake table for testing. It belongs to the mock category within the dev area.
Action Syntax
fake-table 123 rows 123 columns
A numeric value followed by a value followed by A numeric value followed by a value
Return Value
This function returns a
GRP_ITEM
value that can be stored in a variable:
$result = fake-table
Valid sizes
tiny
small
medium
large
extra
Examples
// Basic Usage
$grp_item = fake-table 10 rows 10 columns
Action code: 3069021208
Version: 0.6.4-6
Last updated: 2025-06-13
fake-time
The fake-time action sets a fake time (for testing). It belongs to the mock category within the dev area.
Action Syntax
fake-time HH:MM
A time in HH:MM format
Valid sizes
tiny
small
medium
large
extra
Examples
// Basic Usage
fake-time 09:00
Action code: 2180097433
Version: 0.6.4-3
Last updated: 2025-06-13