| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3e8b2db commit 0e18d3b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,9 +35,9 @@ composer exec codecept run | |||
| 35 | 35 | ||
| 36 | 36 | ### Unit Tests | |
| 37 | 37 | ||
| 38 | - Unit tests are located in `tests/unit` directory and are supposed to contain all kind of unit and intgration testing. | ||
| 38 | + Unit tests are located in `tests/unit` directory and are supposed to contain all kind of unit and integration testing. | ||
| 39 | 39 | ||
| 40 | - Each test case extends `Codeception\Test\Unit` class, which is stndard Codeception format for unit testing. | ||
| 40 | + Each test case extends `Codeception\Test\Unit` class, which is standard Codeception format for unit testing. | ||
| 41 | 41 | It is pretty hard to develop completely isolated unit tests in Yii, so an application is bootstrapped before each test case. Tests are configured in `tests/unit.suite.yml` file with Yii2 module enabled: | |
| 42 | 42 | ||
| 43 | 43 | ```yaml | |
@@ -103,8 +103,8 @@ $I->see('Subject cannot be blank'); | |||
| 103 | 103 | $I->see('Body cannot be blank'); | |
| 104 | 104 | ``` | |
| 105 | 105 | ||
| 106 | - This way you not only test the ContactForm on a site but actual output of applicaiton that user sees. | ||
| 107 | - Codeception provides standard set of actions like `amOnPage`, `submitForm`, `see` for testing. Yii2 module provdes 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). | ||
| 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). | ||
| 108 | 108 | ||
| 109 | 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: | |
| 110 | 110 | ||
@@ -225,7 +225,7 @@ composer exec codecept bootstrap | |||
| 225 | 225 | Enable module Yii2 for functional tests inside `functional.suite.yml`: | |
| 226 | 226 | ||
| 227 | 227 | ```yml | |
| 228 | - # fucntional.suite.yml | ||
| 228 | + # functional.suite.yml | ||
| 229 | 229 | modules: | |
| 230 | 230 | enabled: | |
| 231 | 231 | - Yii2: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments