Skip to content

Commit cf20f8a

Browse files
authored
Switched from using composer exec to directly running commands from vendor
1 parent adf95e4 commit cf20f8a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

for/yii.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Once you created a project from a [basic template](https://github.com/yiisoft/yi
2727
Run them by executing in terminal:
2828

2929
```
30-
composer exec codecept run
30+
./vendor/bin/codecept run
3131
```
3232

3333
![Output](/images/yii-basic-tests.png)
@@ -109,7 +109,7 @@ Codeception provides standard set of actions like `amOnPage`, `submitForm`, `see
109109
Functional tests should be written inside [Cest files](http://codeception.com/docs/07-AdvancedUsage#Cest-Classes), which is a scenario-driven test format of Codeception. You can easily create a new test by running:
110110

111111
```
112-
composer exec codecept g:cest functional MyNewScenarioCest
112+
./vendor/bin/codecept g:cest functional MyNewScenarioCest
113113
```
114114
115115
<div class="alert alert-warning">
@@ -123,7 +123,7 @@ composer exec codecept g:cest functional MyNewScenarioCest
123123
API tests are not included in any Yii templates so you need to set up them manually if you developing a web service. API testing is done at functional testing level but instead of testing HTML responses on user actions, they test requests and responses via protocols like REST or SOAP. To start writing api tests you should create a suite for them
124124
125125
```
126-
composer exec codecept g:suite api
126+
./vendor/bin/codecept g:suite api
127127
```
128128
129129
You will need to enable `REST`, `Yii2` module in `tests/api.suite.yml`:
@@ -186,7 +186,7 @@ As it was said, functional and acceptance tests are similar, so in order to avoi
186186
Similar as for functional tests it is recommended to use Cest format for acceptance testing:
187187

188188
```
189-
composer exec codecept g:cest acceptance MyNewScenarioCest
189+
./vendor/bin/codecept g:cest acceptance MyNewScenarioCest
190190
```
191191

192192
<div class="alert alert-warning">
@@ -219,7 +219,7 @@ composer require "codeception/codeception" --dev
219219
Create basic test suites
220220
221221
```
222-
composer exec codecept bootstrap
222+
./vendor/bin/codecept bootstrap
223223
```
224224
225225
Enable module Yii2 for functional tests inside `functional.suite.yml`:

0 commit comments

Comments
 (0)