mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Update test-fixture.md
This commit is contained in:
@ -88,7 +88,7 @@ class UserProfileFixture extends ActiveFixture
|
||||
public $modelClass = 'app\models\UserProfile';
|
||||
public $depends = ['app\tests\fixtures\UserFixture'];
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
In the above, we have shown how to define a fixture about a DB table. To define a fixture not related with DB
|
||||
(e.g. a fixture about certain files and directories), you may extend from the more general base class
|
||||
|
Reference in New Issue
Block a user