Свойство | Type | Description | |
---|---|---|---|
$defaultAction | controller default action ID. | ||
$globalFixtures | global fixtures that should be applied when loading and unloading. By default it is set to InitDbFixture that disables and enables integrity check, so your data can be safely loaded. | ||
$namespace | default namespace to search fixtures in |
Méthode | Description | |
---|---|---|
actionLoad ( array $fixturesInput = [] ) : integer | Loads the specified fixture data. | |
actionUnload ( array $fixturesInput = [] ) : integer | Unloads the specified fixtures. | |
needToApplyAll ( string $fixture ) : boolean | Checks if needed to apply all fixtures. | |
notifyNothingToLoad ( array $foundFixtures, array $except ) | Notifies user that there are no fixtures to load according input conditions | |
notifyNothingToUnload ( array $foundFixtures, array $except ) | Notifies user that there are no fixtures to unload according input conditions | |
optionAliases ( ) | ||
options ( $actionID ) |
Méthode | Description | |
---|---|---|
confirmLoad ( array $fixtures, array $except ) : boolean | Prompts user with confirmation if fixtures should be loaded. | |
confirmUnload ( array $fixtures, array $except ) : boolean | Prompts user with confirmation for fixtures that should be unloaded. | |
filterFixtures ( array $fixtures ) : array | Filters fixtures by splitting them in two categories: one that should be applied and not. | |
findFixtures ( array $fixtures = [] ) : array | Finds fixtures to be loaded, for example "User", if no fixtures were specified then all of them will be searching by suffix "Fixture.php". | |
getFixturePath ( ) : string | Returns fixture path that determined on fixtures namespace. | |
getFixturesConfig ( array $fixtures ) : array | Returns valid fixtures config that can be used to load them. | |
notifyLoaded ( array $fixtures ) | Notifies user that fixtures were successfully loaded. | |
notifyNotFound ( array $fixtures ) | Notifies user that fixtures were not found under fixtures path. | |
notifyUnloaded ( array $fixtures ) | Notifies user that fixtures were successfully unloaded. | |
outputList ( array $data ) | Outputs data to the console as a list. |
public actionLoad ( array $fixturesInput = [] ) : integer | ||
$fixturesInput | array | |
Résultat | integer | return code |
public actionUnload ( array $fixturesInput = [] ) : integer | ||
$fixturesInput | array | |
Résultat | integer | return code |
public needToApplyAll ( string $fixture ) : boolean | ||
$fixture | string | |
Résultat | boolean |
public notifyNothingToLoad ( array $foundFixtures, array $except ) | ||
$foundFixtures | array | array of found fixtures |
$except | array | array of names of fixtures that should not be loaded |
public notifyNothingToUnload ( array $foundFixtures, array $except ) | ||
$foundFixtures | array | array of found fixtures |
$except | array | array of names of fixtures that should not be loaded |
public $globalFixtures |