Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
a740d7bc
Commit
a740d7bc
authored
Jul 02, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4171 from yiisoft/codeception-fixes
Switched to Codeception 2.0.* for application template tests
parents
2625f3a2
2f19030e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
README.md
apps/advanced/README.md
+1
-1
composer.json
apps/advanced/composer.json
+1
-1
composer.json
apps/basic/composer.json
+1
-1
README.md
apps/basic/tests/README.md
+1
-1
setup-apps.sh
tests/unit/data/travis/setup-apps.sh
+2
-2
No files found.
apps/advanced/README.md
View file @
a740d7bc
...
...
@@ -100,7 +100,7 @@ TESTING
-------
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:
*
`yii2_advanced_unit`
- database for unit tests;
...
...
apps/advanced/composer.json
View file @
a740d7bc
...
...
@@ -25,7 +25,7 @@
"yiisoft/yii2-gii"
:
"*"
},
"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/verify"
:
"BDD Assertions for PHPUnit and Codeception"
,
"yiisoft/yii2-faker"
:
"Fixtures generator for Yii2 based on Faker lib"
...
...
apps/basic/composer.json
View file @
a740d7bc
...
...
@@ -25,7 +25,7 @@
"yiisoft/yii2-gii"
:
"*"
},
"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/verify"
:
"BDD Assertions for PHPUnit and Codeception"
},
...
...
apps/basic/tests/README.md
View file @
a740d7bc
...
...
@@ -6,7 +6,7 @@ After creating the basic application, follow these steps to prepare for the test
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
that it points to the correct entry script URL.
...
...
tests/unit/data/travis/setup-apps.sh
View file @
a740d7bc
...
...
@@ -7,14 +7,14 @@ else
# basic application:
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
../..
# advanced application:
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
sed
-i
s/root/travis/ common/config/main-local.php
cd
backend
&&
php ../vendor/bin/codecept build
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment