From ed74305ae83b7077ffc6f2e58854f147bf9afa47 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 2 Jan 2014 11:02:48 +0400 Subject: [PATCH 1/2] added info about setting testing environment --- apps/basic/composer.json | 4 +--- apps/basic/tests/README.md | 9 +++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/basic/composer.json b/apps/basic/composer.json index 45f21ec..581d472 100644 --- a/apps/basic/composer.json +++ b/apps/basic/composer.json @@ -20,9 +20,7 @@ "yiisoft/yii2-codeception": "*", "yiisoft/yii2-debug": "*", "yiisoft/yii2-gii": "*", - "yiisoft/yii2-swiftmailer": "*", - "codeception/codeception": "*", - "codeception/specify": "*" + "yiisoft/yii2-swiftmailer": "*" }, "scripts": { "post-create-project-cmd": [ diff --git a/apps/basic/tests/README.md b/apps/basic/tests/README.md index 83b0511..07be7b0 100644 --- a/apps/basic/tests/README.md +++ b/apps/basic/tests/README.md @@ -3,9 +3,14 @@ These tests are developed with [Codeception PHP Testing Framework](http://codece After creating the basic application, follow these steps to prepare for the tests: -1. In the file `_bootstrap.php`, modify the definition of the constant `TEST_ENTRY_URL` so +1. To install `Codeception` and its dependencies through composer, run commands: + ``` + php composer.phar require "codeception/codeception": "*" + php composer.phar require "codeception/specify": "*" + ``` +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. -2. Go to the application base directory and build the test suites: +3. Go to the application base directory and build the test suites: ``` vendor/bin/codecept build From 9ced7b4b4df8b62dc407854538892c9f1e8434ef Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 2 Jan 2014 11:04:07 +0400 Subject: [PATCH 2/2] docs fix --- apps/basic/tests/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/basic/tests/README.md b/apps/basic/tests/README.md index 07be7b0..3b013eb 100644 --- a/apps/basic/tests/README.md +++ b/apps/basic/tests/README.md @@ -4,10 +4,12 @@ These tests are developed with [Codeception PHP Testing Framework](http://codece After creating the basic application, follow these steps to prepare for the tests: 1. To install `Codeception` and its dependencies through composer, run commands: + ``` php composer.phar require "codeception/codeception": "*" php composer.phar require "codeception/specify": "*" ``` + 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. 3. Go to the application base directory and build the test suites: