test\FixtureTrait createFixtures()

createFixtures() protected method

Creates the specified fixture instances.

All dependent fixtures will also be created.

protected yii\test\Fixture[] createFixtures ( array $fixtures )
$fixtures array

The fixtures to be created. You may provide fixture names or fixture configurations. If this parameter is not provided, the fixtures specified in globalFixtures() and fixtures() will be created.

return yii\test\Fixture[]

The created fixture instances

throws yii\base\InvalidConfigException

if fixtures are not properly configured or if a circular dependency among the fixtures is detected.

doc_Yii
2016-10-30 17:13:11
Comments
Leave a Comment

Please login to continue.