Skip to content

Some small typos in documentation fixed #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions for/yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ 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.
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
Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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:
Expand Down
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