G
G
gto61202017-01-29 17:51:24
Yii
gto6120, 2017-01-29 17:51:24

How to load a fixture from an advanced template?

php yii fixture User --namespace='common\fixtures'
Answer:

Some fixtures were not found under path:
        /var/www/t.dev/common/fixtures

Check that they have correct namespace "common\fixtures" 
        1. User

Error: No files were found for: "User".
Check that files exist under fixtures path: 
"/var/www/t.dev/common/fixtures".

Why doesn't he want to??(
FS:
33cd9b4f09a24eb08d9d3d7f56ab8a32.jpg
common/fixtures/User.php
c05d74e35db54afd85e74f1958b3f672.PNG
common/tests/_data/user.php
a7cefed6feb04dfeb3129b0cfe694ed4.PNG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-01-30
@gto6120

you have the wrong class name, fixture classes must have the Fixture suffix, for example

class UserFixture extends ActiveFixture {
}

D
Dmitry, 2017-01-29
@slo_nik

Good afternoon.
Shouldn't the fixture name be specified in "--namespace='common\fixtures'"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question