faker\FixtureController beforeAction()

beforeAction() public method This method is invoked right before an action is executed. The method will trigger the EVENT_BEFORE_ACTION event. The return value of the method will determine whether the action should continue to run. In case the action should not run, the request should be handled inside of the beforeAction code by either providing the necessary output or redirecting the request. Otherwise the response will be empty. If you override this method, your code should look like the

faker\FixtureController addProviders()

addProviders() public method Adds users providers to the faker generator. public void addProviders ( )

faker\FixtureController actionTemplates()

actionTemplates() public method Lists all available fixtures template files. public void actionTemplates ( )

faker\FixtureController actionGenerateAll()

actionGenerateAll() public method Generates all fixtures template path that can be found. public void actionGenerateAll ( )

faker\FixtureController actionGenerate()

actionGenerate() public method Generates fixtures and fill them with Faker data. For example, //generate fixtures in russian language yii fixture/generate user --count=5 --language=ru_RU //generate several fixtures yii fixture/generate user profile team public void actionGenerate ( )throws yii\base\InvalidParamException throws yii\console\Exception

faker\FixtureController $templatePath

$templatePath public property Alias to the template path, where all tables templates are stored. public string $templatePath = '@tests/unit/templates/fixtures'

faker\FixtureController $providers

$providers public property Additional data providers that can be created by user and will be added to the Faker generator. More info in Faker library docs. public array $providers = []

faker\FixtureController $language

$language public property Language to use when generating fixtures data. public string $language = null

faker\FixtureController $generator

$generator public read-only property public \Faker\Generator getGenerator ( )

faker\FixtureController $fixtureDataPath

$fixtureDataPath public property Alias to the fixture data path, where data files should be written. public string $fixtureDataPath = '@tests/unit/fixtures/data'