Skip to content

Commit d1b0e57

Browse files
authored
update yii.md links (#606)
1 parent 03f5ea7 commit d1b0e57

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

for/yii.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ modules:
4949
5050
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.
5151

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:
5353

5454
```php
5555
<?php
@@ -79,11 +79,11 @@ $this->tester->haveFixtures([
7979
$this->tester->grabFixture('user', 0);
8080
```
8181

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).
8383

8484
<div class="alert alert-warning">
8585
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
86-
Continue to <a href="http://codeception.com/docs/05-UnitTests">Unit Testing Guide &raquo;</a>
86+
Continue to <a href="https://codeception.com/docs/05-UnitTests">Unit Testing Guide &raquo;</a>
8787
</div>
8888

8989

@@ -104,9 +104,9 @@ $I->see('Body cannot be blank');
104104
```
105105

106106
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).
108108

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:
110110

111111
```
112112
./vendor/bin/codecept g:cest functional MyNewScenarioCest
@@ -115,7 +115,7 @@ Functional tests should be written inside [Cest files](http://codeception.com/do
115115
<div class="alert alert-warning">
116116
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
117117
Functional tests are really powerful and simple. They are highly <strong>recommended to use</strong> for any Yii application.<br>
118-
Continue to <a href="http://codeception.com/docs/04-FunctionalTests">Functional Testing Guide &raquo;</a>
118+
Continue to <a href="https://codeception.com/docs/04-FunctionalTests">Functional Testing Guide &raquo;</a>
119119
</div>
120120
121121
### API Tests
@@ -145,7 +145,7 @@ Yii2 module actions like `amOnPage` or `see` should not be available for testing
145145

146146
<div class="alert alert-warning">
147147
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
148-
Continue to <a href="http://codeception.com/docs/10-APITesting#REST-API">REST API Testing Guide &raquo;</a>.
148+
Continue to <a href="https://codeception.com/docs/10-APITesting#REST-API">REST API Testing Guide &raquo;</a>.
149149
</div>
150150

151151
### Acceptance Tests
@@ -166,7 +166,7 @@ Then you will need to launch application server in test mode:
166166
./tests/bin/yii serve
167167
```
168168

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:
170170

171171
```yml
172172
# config at tests/acceptance.yml
@@ -191,7 +191,7 @@ Similar as for functional tests it is recommended to use Cest format for accepta
191191

192192
<div class="alert alert-warning">
193193
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
194-
Continue to <a href="http://codeception.com/docs/03-AcceptanceTests">Acceptance Testing Guide &raquo;</a>
194+
Continue to <a href="https://codeception.com/docs/03-AcceptanceTests">Acceptance Testing Guide &raquo;</a>
195195
</div>
196196

197197
## Yii Advanced
@@ -204,7 +204,7 @@ Tests also include namespaces for testcase classes and testers to avoid conflict
204204

205205
<div class="alert alert-warning">
206206
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
207-
Learn more about <a href="http://codeception.com/docs/08-Customization#One-Runner-for-Multiple-Applications">testing multiple applications &raquo;</a>
207+
Learn more about <a href="https://codeception.com/docs/08-Customization#One-Runner-for-Multiple-Applications">testing multiple applications &raquo;</a>
208208
</div>
209209

210210
## Manual Setup && Configuration

0 commit comments

Comments
 (0)