Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faker docs problem #8692

Closed
sdlins opened this issue Jun 8, 2015 · 2 comments
Closed

Faker docs problem #8692

sdlins opened this issue Jun 8, 2015 · 2 comments
Labels

Comments

@sdlins
Copy link
Contributor

sdlins commented Jun 8, 2015

Under USAGE, please change this:

    'controllerMap' => [
        'fixture' => [
            'class' => 'yii\faker\FixtureController',
            // please, add this line [in yii2-advanced, i dont know in basic]:
            'templatePath' => '@tests/codeception/common/templates/fixtures',
        ],
    ],

It will avoid this stupid error that made me (and probably many other, based in google searchs!) waste so much time to figure out where to fix that:
Error: The template path "@tests/unit/templates/fixtures" does not exist

yii help fixture results should also be updated, please.

@samdark samdark added type:docs Documentation ext:faker labels Jun 8, 2015
@sdlins
Copy link
Contributor Author

sdlins commented Jun 8, 2015

One more thing: I just found that there is a specific yii cli inside tests/codeception/bin that is already using the configs in tests/codeception/config/config.php. Guess what we have there?

return [
    'controllerMap' => [
        'fixture' => [
            'class' => 'yii\faker\FixtureController',
            'fixtureDataPath' => '@tests/codeception/common/fixtures/data', // this...
            'templatePath' => '@tests/codeception/common/templates/fixtures', // and this...
            'namespace' => 'tests\codeception\common\fixtures',
        ],
    ],
...

Docs (in general, not only Faker) does not do mention neither that specific yii for tests (when using codeception) nor above configs already present in yii2-codeception configs out of the box.

I think this is part of the programmers' big wasting of time (error messages, where-configure questions, etc) when playing tests, specially when using yii2-codeception.

@yii-bot
Copy link

yii-bot commented Jan 24, 2016

Issue moved to yiisoft/yii2-faker#18

@yii-bot yii-bot closed this as completed Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants