From 4e8ed67326ceb00b78e2f1e8c92ec0140dcbf27e Mon Sep 17 00:00:00 2001 From: Yasser Hassan Date: Wed, 21 Oct 2015 03:07:07 +0200 Subject: [PATCH] Modified default @tests value and updated READMEs. --- README.md | 7 ++++--- config/console.php | 9 ++++++++- tests/README.md | 11 +++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9a1a4b3..d658d52 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ return [ ]; ``` -**NOTE:** Yii won't create the database for you, this has to be done manually before you can access it. - -Also check and edit the other files in the `config/` directory to customize your application. +**NOTES:** +- Yii won't create the database for you, this has to be done manually before you can access it. +- Check and edit the other files in the `config/` directory to customize your application as required. +- Refer to the README in the `tests` direcotry for information specific to basic application tests. diff --git a/config/console.php b/config/console.php index 7c810de..7306e27 100644 --- a/config/console.php +++ b/config/console.php @@ -1,6 +1,6 @@ $db, ], 'params' => $params, + /* + 'controllerMap' => [ + 'fixture' => [ // Fixture generation command line. + 'class' => 'yii\faker\FixtureController', + ], + ], + */ ]; if (YII_ENV_DEV) { diff --git a/tests/README.md b/tests/README.md index a34f68b..15cb0b8 100644 --- a/tests/README.md +++ b/tests/README.md @@ -62,6 +62,17 @@ webserver. In the `web` directory execute the following: codecept run unit ``` +Fixtures Default Configuration +------------------------------ +The `fixture` commands refer to the following `ActiveFixture` configuration by default: + +- Fixtures path: `@tests/unit/fixtures` +- Fixtures data path: `@tests/unit/fixtures/data` +- Template files path: `@tests/unit/templates/fixtures` +- Namespace: `tests\unit\fixtures` + +Where `@tests` refers to `@app/tests/codeception`. + Code coverage support ---------------------