yii\test\FixtureTrait::loadFixtures PHP Метод

loadFixtures() публичный Метод

This method will call [[Fixture::load()]] for every fixture object.
public loadFixtures ( Fixture[] $fixtures = null )
$fixtures Fixture[] the fixtures to be loaded. If this parameter is not specified, the return value of [[getFixtures()]] will be used.
    public function loadFixtures($fixtures = null)
    {
        if ($fixtures === null) {
            $fixtures = $this->getFixtures();
        }
        /* @var $fixture Fixture */
        foreach ($fixtures as $fixture) {
            $fixture->beforeLoad();
        }
        foreach ($fixtures as $fixture) {
            $fixture->load();
        }
        foreach (array_reverse($fixtures) as $fixture) {
            $fixture->afterLoad();
        }
    }