From 9625199361de50c85a390c870d13968fc323d410 Mon Sep 17 00:00:00 2001 From: Hylke Date: Mon, 24 Oct 2016 13:10:47 +0200 Subject: [PATCH 1/3] intgration -> integration --- for/yii.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/for/yii.md b/for/yii.md index c1447cbb7..ac391a228 100644 --- a/for/yii.md +++ b/for/yii.md @@ -35,7 +35,7 @@ composer exec codecept run ### Unit Tests -Unit tests are located in `tests/unit` directory and are supposed to contain all kind of unit and intgration testing. +Unit tests are located in `tests/unit` directory and are supposed to contain all kind of unit and integration testing. Each test case extends `Codeception\Test\Unit` class, which is stndard Codeception format for unit testing. 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: From d0ae5f4dec16d289b670b229171a100fe690414b Mon Sep 17 00:00:00 2001 From: Hylke Date: Mon, 24 Oct 2016 13:13:39 +0200 Subject: [PATCH 2/3] small typos fixed --- for/yii.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/for/yii.md b/for/yii.md index ac391a228..87339d282 100644 --- a/for/yii.md +++ b/for/yii.md @@ -37,7 +37,7 @@ composer exec codecept run Unit tests are located in `tests/unit` directory and are supposed to contain all kind of unit and integration testing. -Each test case extends `Codeception\Test\Unit` class, which is stndard Codeception format for unit testing. +Each test case extends `Codeception\Test\Unit` class, which is standard Codeception format for unit testing. 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: ```yaml @@ -103,8 +103,8 @@ $I->see('Subject cannot be blank'); $I->see('Body cannot be blank'); ``` -This way you not only test the ContactForm on a site but actual output of applicaiton that user sees. -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). +This way you not only test the ContactForm on a site but actual output of application that user sees. +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). 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: From 2fc60f5f4f4f3b2f2fd5948426cab20b1369eaa1 Mon Sep 17 00:00:00 2001 From: Hylke Date: Mon, 24 Oct 2016 14:12:42 +0200 Subject: [PATCH 3/3] fucntional != functional --- for/yii.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/for/yii.md b/for/yii.md index 87339d282..f22fc247f 100644 --- a/for/yii.md +++ b/for/yii.md @@ -225,7 +225,7 @@ composer exec codecept bootstrap Enable module Yii2 for functional tests inside `functional.suite.yml`: ```yml -# fucntional.suite.yml +# functional.suite.yml modules: enabled: - Yii2: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy