v1.0.0
English
▼
Slovenčina
Čeština
Deutsch
Polski
Português
Русский
Українська
हिन्दी
فارسی
Home
›
system
›
Helpers
›
test_helper_php
test_helper.php
system/Helpers/test_helper.php
2 fn
fake
($model, ?array $overrides = null, $persist = true)
function
Creates a single item using Fabricator.
Parameters
Model|object|string
$model
— Instance or name of the model
array|null
$overrides
— Overriding data to pass to Fabricator::setOverrides()
bool
$persist
return
array|object
View Source
Copy
mock
(string $className)
function
Used within our test suite to mock certain system tools.
Parameters
string
$className
— Fully qualified class name
return
object
View Source
Copy
phpDG v1.0.0
test_helper.php
662 files
498 classes
763 fn
Generated