Commit a740d7bc by Alexander Makarov

Merge pull request #4171 from yiisoft/codeception-fixes

Switched to Codeception 2.0.* for application template tests
parents 2625f3a2 2f19030e
...@@ -100,7 +100,7 @@ TESTING ...@@ -100,7 +100,7 @@ TESTING
------- -------
Install additional composer packages: Install additional composer packages:
* `php composer.phar require --dev "codeception/codeception: 1.8.*@dev" "codeception/specify: *" "codeception/verify: *" "yiisoft/yii2-faker: *"` * `php composer.phar require --dev "codeception/codeception: 2.0.*" "codeception/specify: *" "codeception/verify: *" "yiisoft/yii2-faker: *"`
This application boilerplate use database in testing, so you should create three databases that are used in tests: This application boilerplate use database in testing, so you should create three databases that are used in tests:
* `yii2_advanced_unit` - database for unit tests; * `yii2_advanced_unit` - database for unit tests;
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
"yiisoft/yii2-gii": "*" "yiisoft/yii2-gii": "*"
}, },
"suggest": { "suggest": {
"codeception/codeception": "Codeception, 1.8.*@dev is currently works well with Yii.", "codeception/codeception": "Codeception, 2.0.* is currently works well with Yii.",
"codeception/specify": "BDD style code blocks for PHPUnit and Codeception", "codeception/specify": "BDD style code blocks for PHPUnit and Codeception",
"codeception/verify": "BDD Assertions for PHPUnit and Codeception", "codeception/verify": "BDD Assertions for PHPUnit and Codeception",
"yiisoft/yii2-faker": "Fixtures generator for Yii2 based on Faker lib" "yiisoft/yii2-faker": "Fixtures generator for Yii2 based on Faker lib"
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
"yiisoft/yii2-gii": "*" "yiisoft/yii2-gii": "*"
}, },
"suggest": { "suggest": {
"codeception/codeception": "Codeception, 1.8.*@dev is currently works well with Yii.", "codeception/codeception": "Codeception, 2.0.* is currently works well with Yii.",
"codeception/specify": "BDD style code blocks for PHPUnit and Codeception", "codeception/specify": "BDD style code blocks for PHPUnit and Codeception",
"codeception/verify": "BDD Assertions for PHPUnit and Codeception" "codeception/verify": "BDD Assertions for PHPUnit and Codeception"
}, },
......
...@@ -6,7 +6,7 @@ After creating the basic application, follow these steps to prepare for the test ...@@ -6,7 +6,7 @@ After creating the basic application, follow these steps to prepare for the test
1. Install additional composer packages: 1. Install additional composer packages:
``` ```
php composer.phar require --dev "codeception/codeception: 1.8.*@dev" "codeception/specify: *" "codeception/verify: *" php composer.phar require --dev "codeception/codeception: 2.0.*" "codeception/specify: *" "codeception/verify: *"
``` ```
2. In the file `_bootstrap.php`, modify the definition of the constant `TEST_ENTRY_URL` so 2. In the file `_bootstrap.php`, modify the definition of the constant `TEST_ENTRY_URL` so
that it points to the correct entry script URL. that it points to the correct entry script URL.
......
...@@ -7,14 +7,14 @@ else ...@@ -7,14 +7,14 @@ else
# basic application: # basic application:
composer install --dev --prefer-dist -d apps/basic composer install --dev --prefer-dist -d apps/basic
cd apps/basic && composer require --dev codeception/codeception:1.8.*@dev codeception/specify:* codeception/verify:* cd apps/basic && composer require --dev codeception/codeception:2.0.* codeception/specify:* codeception/verify:*
php vendor/bin/codecept build && cd ../.. php vendor/bin/codecept build && cd ../..
# advanced application: # advanced application:
composer install --dev --prefer-dist -d apps/advanced composer install --dev --prefer-dist -d apps/advanced
cd apps/advanced && composer require --dev codeception/codeception:1.8.*@dev codeception/specify:* codeception/verify:* cd apps/advanced && composer require --dev codeception/codeception:2.0.* codeception/specify:* codeception/verify:*
./init --env=Development ./init --env=Development
sed -i s/root/travis/ common/config/main-local.php sed -i s/root/travis/ common/config/main-local.php
cd backend && php ../vendor/bin/codecept build cd backend && php ../vendor/bin/codecept build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment