Skip to content

Commit 4e8ed67

Browse files
committed
Modified default @tests value and updated READMEs.
1 parent 0bfc5f9 commit 4e8ed67

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ return [
9696
];
9797
```
9898

99-
**NOTE:** Yii won't create the database for you, this has to be done manually before you can access it.
100-
101-
Also check and edit the other files in the `config/` directory to customize your application.
99+
**NOTES:**
100+
- Yii won't create the database for you, this has to be done manually before you can access it.
101+
- Check and edit the other files in the `config/` directory to customize your application as required.
102+
- Refer to the README in the `tests` direcotry for information specific to basic application tests.

config/console.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
Yii::setAlias('@tests', dirname(__DIR__) . '/tests');
3+
Yii::setAlias('@tests', dirname(__DIR__) . '/tests/codeception');
44

55
$params = require(__DIR__ . '/params.php');
66
$db = require(__DIR__ . '/db.php');
@@ -25,6 +25,13 @@
2525
'db' => $db,
2626
],
2727
'params' => $params,
28+
/*
29+
'controllerMap' => [
30+
'fixture' => [ // Fixture generation command line.
31+
'class' => 'yii\faker\FixtureController',
32+
],
33+
],
34+
*/
2835
];
2936

3037
if (YII_ENV_DEV) {

tests/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ webserver. In the `web` directory execute the following:
6262
codecept run unit
6363
```
6464

65+
Fixtures Default Configuration
66+
------------------------------
67+
The `fixture` commands refer to the following `ActiveFixture` configuration by default:
68+
69+
- Fixtures path: `@tests/unit/fixtures`
70+
- Fixtures data path: `@tests/unit/fixtures/data`
71+
- Template files path: `@tests/unit/templates/fixtures`
72+
- Namespace: `tests\unit\fixtures`
73+
74+
Where `@tests` refers to `@app/tests/codeception`.
75+
6576
Code coverage support
6677
---------------------
6778

0 commit comments

Comments
 (0)