Closed mitalcoi closed 10 years ago
are you sure your fixtures is under the default path of tests\unit\fixtures
? Path is calculated in this way
of course. earlier it works without any problem
not sure about this one, could you make some simple debug maybe with var_dump
+ exit
on FixtureController
?
what variable i need to debug exactly?
vagrant@locksmith:/var/www$ php yii fixture/load *
$namespace: tests\unit\fixtures
$fixturesInput: Array
(
[0] => assets
[1] => codeception.yml
[2] => commands
[3] => components
[4] => composer.json
[5] => composer.json~
[6] => composer.lock
[7] => config
[8] => consumers
[9] => controllers
[10] => environments
[11] => init
[12] => LICENSE.md
[13] => mail
[14] => migrations
[15] => models
[16] => node
[17] => rbac
[18] => README.md
[19] => reports
[20] => requirements.php
[21] => runtime
[22] => tests
[23] => traits
[24] => vagrant
[25] => Vagrantfile
[26] => vendor
[27] => views
[28] => web
[29] => widgets
[30] => yii
[31] => yii.bat
)
$foundFixtures: Array
(
)
i think it is a vagrant or OS problem of usage *
as in input argument, i remember similar issue or question discussed with @qiangxue what is your thoughts ?
@mitalcoi can you also try without *
by specifying fixtures names directly in different combinations ?
it is not a vargant problem. on my remote server i've got identical error.
yes, it works fine for me on Ubuntu 13.04
but as you can see it is a console problem since it thinkgs *
as simple directory list, early it was all
instead of *
If i specifuing fixture directly, all works
vagrant@locksmith:/var/www$ php yii fixture/load User
Fixtures namespace is:
tests\unit\fixtures
Global fixtures will be used:
1. yii\test\InitDb
Fixtures below will be loaded:
1. User
yes , it is *
problem
maybe we need revert to using "all" as constant name?
@qiangxue look at this one when you will have time
Can you try php yii fixture/load "*"
?
yes, it is!
Closing since it's a shell issue and not Yii's one.
@samdark yes, but i think maybe changing to all
is better? Or we need a not at least about this situations
We just need to add quotes to examples.
need also to mention this unexpected behavior
@samdark should i submit PR or you will handle this one ?
PRs are always helpful.
After last update i can't load my fixtures:
Before update all works well