test\InitDbFixture beforeLoad()

beforeLoad() public method This method is called BEFORE any fixture data is loaded for the current test. public void beforeLoad ( )

test\InitDbFixture afterUnload()

afterUnload() public method This method is called AFTER all fixture data have been unloaded for the current test. public void afterUnload ( )

test\InitDbFixture afterLoad()

afterLoad() public method This method is called AFTER all fixture data have been loaded for the current test. public void afterLoad ( )

test\FixtureTrait unloadFixtures()

unloadFixtures() public method Unloads the specified fixtures. This method will call yii\test\Fixture::unload() for every fixture object. public void unloadFixtures ( $fixtures = null )$fixtures yii\test\Fixture[] The fixtures to be loaded. If this parameter is not specified, the return value of getFixtures() will be used.

test\InitDbFixture $initScript

$initScript public property The init script file that should be executed when loading this fixture. This should be either a file path or path alias. Note that if the file does not exist, no error will be raised. public string $initScript = '@app/tests/fixtures/initdb.php'

test\InitDbFixture $schemas

$schemas public property List of database schemas that the test tables may reside in. Defaults to [''], meaning using the default schema (an empty string refers to the default schema). This property is mainly used when turning on and off integrity checks so that fixture data can be populated into the database without causing problem. public array $schemas = ['']

test\FixtureTrait getFixtures()

getFixtures() public method Returns the fixture objects as specified in globalFixtures() and fixtures(). public yii\test\Fixture[] getFixtures ( )return yii\test\Fixture[] The loaded fixtures for the current test case

test\FixtureTrait getFixture()

getFixture() public method Returns the named fixture. public yii\test\Fixture getFixture ( $name )$name string The fixture name. This can be either the fixture alias name, or the class name if the alias is not used. return yii\test\Fixture The fixture object, or null if the named fixture does not exist.

test\FixtureTrait loadFixtures()

loadFixtures() public method Loads the specified fixtures. This method will call yii\test\Fixture::load() for every fixture object. public void loadFixtures ( $fixtures = null )$fixtures yii\test\Fixture[] The fixtures to be loaded. If this parameter is not specified, the return value of getFixtures() will be used.

test\FixtureTrait globalFixtures()

globalFixtures() public method Declares the fixtures shared required by different test cases. The return value should be similar to that of fixtures(). You should usually override this method in a base class. See also fixtures(). public array globalFixtures ( )return array The fixtures shared and required by different test cases.