mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-13 22:06:51 +08:00
Global DOCS update: ~~~ replaced with ```
This commit is contained in:
@ -17,7 +17,7 @@ use yii\test\FixtureTrait;
|
||||
/**
|
||||
* Manages fixture data loading and unloading.
|
||||
*
|
||||
* ~~~
|
||||
* ```
|
||||
* #load fixtures from UsersFixture class with default namespace "tests\unit\fixtures"
|
||||
* yii fixture/load User
|
||||
*
|
||||
@ -32,7 +32,7 @@ use yii\test\FixtureTrait;
|
||||
*
|
||||
* #load fixtures with different namespace.
|
||||
* yii fixture/load User --namespace=alias\my\custom\namespace\goes\here
|
||||
* ~~~
|
||||
* ```
|
||||
*
|
||||
* The `unload` sub-command can be used similarly to unload fixtures.
|
||||
*
|
||||
@ -74,7 +74,7 @@ class FixtureController extends Controller
|
||||
* Loads the specified fixture data.
|
||||
* For example,
|
||||
*
|
||||
* ~~~
|
||||
* ```
|
||||
* # load the fixture data specified by User and UserProfile.
|
||||
* # any existing fixture data will be removed first
|
||||
* yii fixture/load User UserProfile
|
||||
@ -84,7 +84,7 @@ class FixtureController extends Controller
|
||||
*
|
||||
* # load all fixtures except User and UserProfile
|
||||
* yii fixture/load "*" -User -UserProfile
|
||||
* ~~~
|
||||
* ```
|
||||
*
|
||||
* @throws Exception if the specified fixture does not exist.
|
||||
*/
|
||||
@ -155,7 +155,7 @@ class FixtureController extends Controller
|
||||
* Unloads the specified fixtures.
|
||||
* For example,
|
||||
*
|
||||
* ~~~
|
||||
* ```
|
||||
* # unload the fixture data specified by User and UserProfile.
|
||||
* yii fixture/unload User UserProfile
|
||||
*
|
||||
@ -164,7 +164,7 @@ class FixtureController extends Controller
|
||||
*
|
||||
* # unload all fixtures except User and UserProfile
|
||||
* yii fixture/unload "*" -User -UserProfile
|
||||
* ~~~
|
||||
* ```
|
||||
*
|
||||
* @throws Exception if the specified fixture does not exist.
|
||||
*/
|
||||
@ -434,7 +434,7 @@ class FixtureController extends Controller
|
||||
* If fixture is prefixed with "-", for example "-User", that means that fixture should not be loaded,
|
||||
* if it is not prefixed it is considered as one to be loaded. Returns array:
|
||||
*
|
||||
* ~~~
|
||||
* ```php
|
||||
* [
|
||||
* 'apply' => [
|
||||
* 'User',
|
||||
@ -445,7 +445,7 @@ class FixtureController extends Controller
|
||||
* ...
|
||||
* ],
|
||||
* ]
|
||||
* ~~~
|
||||
* ```
|
||||
* @param array $fixtures
|
||||
* @return array fixtures array with 'apply' and 'except' elements.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user