... | ... | @@ -17,7 +17,7 @@ mapa *_protected/tests/unit/fixtures* zagotavlja podatke za razreda/tabele User |
|
|
|
|
|
```
|
|
|
C:\xampp74\htdocs\yy-ii-22\_protected>
|
|
|
yii fixture/load "Article,User"
|
|
|
yii fixture/load "Article,User,authassignment"
|
|
|
```
|
|
|
|
|
|
odziv je nekako kot spodaj, vmes zahteva še eno potrditev:
|
... | ... | @@ -33,7 +33,8 @@ Global fixtures will be used: |
|
|
Fixtures below will be loaded:
|
|
|
|
|
|
1. Article
|
|
|
2. User
|
|
|
2. authassignment
|
|
|
3. User
|
|
|
|
|
|
Be aware that:
|
|
|
Applying leads to purging of certain data in the database!
|
... | ... | @@ -44,7 +45,8 @@ Fixtures were successfully loaded from namespace: |
|
|
|
|
|
1. yii\test\InitDbFixture
|
|
|
2. tests\unit\fixtures\ArticleFixture
|
|
|
3. tests\unit\fixtures\UserFixture
|
|
|
3. tests\unit\fixtures\authassignmentFixture
|
|
|
4. tests\unit\fixtures\UserFixture
|
|
|
```
|
|
|
|
|
|
uspešna operacija v tabelah kreira naslednje zapise (geslo uporabnika je enako njegovemu uporabniškemu imenu) :
|
... | ... | @@ -55,5 +57,5 @@ uspešna operacija v tabelah kreira naslednje zapise (geslo uporabnika je enako |
|
|
| editor123 | |editorjev prvi članćči |
|
|
|
| member123 | | |
|
|
|
|
|
|
|
|
|
ter doda še prireditev vlog v tabelo auth_assignment.
|
|
|
|