Class tests\codeception\common\_support\FixtureHelper
Inheritance | tests\codeception\common\_support\FixtureHelper » Codeception\Module |
---|---|
Uses Traits | yii\test\FixtureTrait |
This helper is used to populate the database with needed fixtures before any tests are run.
In this example, the database is populated with the demo login user, which is used in acceptance and functional tests. All fixtures will be loaded before the suite is started and unloaded after it completes.
Public Methods
Method | Description | Defined By |
---|---|---|
_afterSuite() | Method is called after all suite tests run | tests\codeception\common\_support\FixtureHelper |
_beforeSuite() | Method called before any suite tests run. Loads User fixture login user to use in acceptance and functional tests. | tests\codeception\common\_support\FixtureHelper |
fixtures() | tests\codeception\common\_support\FixtureHelper | |
getFixture() | Returns the named fixture. | yii\test\FixtureTrait |
getFixtures() | Returns the fixture objects as specified in globalFixtures() and fixtures(). | yii\test\FixtureTrait |
globalFixtures() | tests\codeception\common\_support\FixtureHelper | |
initFixtures() | Initialize the fixtures | yii\test\FixtureTrait |
loadFixtures() | Loads the specified fixtures. | yii\test\FixtureTrait |
unloadFixtures() | Unloads the specified fixtures. | yii\test\FixtureTrait |
Protected Methods
Method | Description | Defined By |
---|---|---|
createFixtures() | Creates the specified fixture instances. | yii\test\FixtureTrait |
Method Details
Method is called after all suite tests run
public void _afterSuite ( ) |
Method called before any suite tests run. Loads User fixture login user to use in acceptance and functional tests.
public void _beforeSuite ( $settings = [] ) | ||
$settings | array |
public void fixtures ( ) |
public void globalFixtures ( ) |