You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: for/yii.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ modules:
49
49
50
50
This module starts Yii application for a test case and provides additional helper methods to simplify testing. It has only `orm` and `email` parts in order to exclude methods needed for functional testing only.
51
51
52
-
By accessing `$this->tester` class inside a test case you can use methods of [Yii2 module](http://codeception.com/docs/modules/Yii2). So if you have orm and email parts enabled so you can call methods belonging from these parts:
52
+
By accessing `$this->tester` class inside a test case you can use methods of [Yii2 module](https://codeception.com/docs/modules/Yii2). So if you have orm and email parts enabled so you can call methods belonging from these parts:
53
53
54
54
```php
55
55
<?php
@@ -79,11 +79,11 @@ $this->tester->haveFixtures([
79
79
$this->tester->grabFixture('user', 0);
80
80
```
81
81
82
-
If `Yii2` module is enabled you can safely call `Yii::$app` inside a test, as application is initialized and cleaned up after a test. If you want to add your helper methods or custom assertions for your test case you should not extend `Codeception\Test\Unit` but write your own separate [Helper class](http://codeception.com/docs/06-ModulesAndHelpers#Helpers).
82
+
If `Yii2` module is enabled you can safely call `Yii::$app` inside a test, as application is initialized and cleaned up after a test. If you want to add your helper methods or custom assertions for your test case you should not extend `Codeception\Test\Unit` but write your own separate [Helper class](https://codeception.com/docs/06-ModulesAndHelpers#Helpers).
Continue to <a href="http://codeception.com/docs/05-UnitTests">Unit Testing Guide »</a>
86
+
Continue to <a href="https://codeception.com/docs/05-UnitTests">Unit Testing Guide »</a>
87
87
</div>
88
88
89
89
@@ -104,9 +104,9 @@ $I->see('Body cannot be blank');
104
104
```
105
105
106
106
This way you not only test the ContactForm on a site but actual output of application that user sees.
107
-
Codeception provides standard set of actions like `amOnPage`, `submitForm`, `see` for testing. Yii2 module provides special methods, like `amLoggedInAs` (for fast authentication), `haveRecord`, `seeRecord`, `seeEmailIsSent` and others. They all are listed in [module reference](http://codeception.com/docs/modules/Yii2).
107
+
Codeception provides standard set of actions like `amOnPage`, `submitForm`, `see` for testing. Yii2 module provides special methods, like `amLoggedInAs` (for fast authentication), `haveRecord`, `seeRecord`, `seeEmailIsSent` and others. They all are listed in [module reference](https://codeception.com/docs/modules/Yii2).
108
108
109
-
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:
109
+
Functional tests should be written inside [Cest files](https://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:
Continue to <ahref="http://codeception.com/docs/10-APITesting#REST-API">REST API Testing Guide »</a>.
148
+
Continue to <ahref="https://codeception.com/docs/10-APITesting#REST-API">REST API Testing Guide »</a>.
149
149
</div>
150
150
151
151
### Acceptance Tests
@@ -166,7 +166,7 @@ Then you will need to launch application server in test mode:
166
166
./tests/bin/yii serve
167
167
```
168
168
169
-
and start a [Selenium Server](http://codeception.com/docs/modules/WebDriver#Local-Testing). For acceptance WebDriver module is used. Please check its reference to learn how to work with it. Unlike Yii2 module it does know nothing about your application, so if you want to use features of Yii like fixtures for acceptance testing, you should check that enable Yii2 module is enabled as well:
169
+
and start a [Selenium Server](https://codeception.com/docs/modules/WebDriver#Local-Testing). For acceptance WebDriver module is used. Please check its reference to learn how to work with it. Unlike Yii2 module it does know nothing about your application, so if you want to use features of Yii like fixtures for acceptance testing, you should check that enable Yii2 module is enabled as well:
170
170
171
171
```yml
172
172
# config at tests/acceptance.yml
@@ -191,7 +191,7 @@ Similar as for functional tests it is recommended to use Cest format for accepta
Learn more about <a href="http://codeception.com/docs/08-Customization#One-Runner-for-Multiple-Applications">testing multiple applications »</a>
207
+
Learn more about <a href="https://codeception.com/docs/08-Customization#One-Runner-for-Multiple-Applications">testing multiple applications »</a>
0 commit comments