test_helper.php
This file is part of the CodeIgniter 4 framework.
(c) CodeIgniter Foundation admin@codeigniter.com
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
Table of Contents
- fake() : object|array<string|int, mixed>
- Creates a single item using Fabricator.
Functions
fake()
Creates a single item using Fabricator.
fake(Model|object|string $model[, array<string|int, mixed>|null $overrides = null ][, mixed $persist = true ]) : object|array<string|int, mixed>
Parameters
- $model : Model|object|string
-
Instance or name of the model
- $overrides : array<string|int, mixed>|null = null
-
Overriding data to pass to Fabricator::setOverrides()
- $persist : mixed = true