Class tests\codeception\common\_support\FixtureHelper

Inheritancetests\codeception\common\_support\FixtureHelper » Codeception\Module
Uses Traitsyii\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

Hide inherited methods

MethodDescriptionDefined 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

Hide inherited methods

MethodDescriptionDefined By
createFixtures() Creates the specified fixture instances. yii\test\FixtureTrait

Method Details

_afterSuite() public method

Method is called after all suite tests run

public void _afterSuite ( )
_beforeSuite() public method

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
fixtures() public method

public void fixtures ( )
globalFixtures() public method

public void globalFixtures ( )