Skip to content

Commit 307d0b1

Browse files
committed
added for/laravel page
1 parent 2f3ce9f commit 307d0b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

for/laravel.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ composer exec codecept g:cest functional Login
7676
Codeception is powered by PHPUnit so unit and integration test work in a similar manner. To genereate a plain PHPUnit test for `Foo\Bar` class
7777
7878
```
79-
php bin/codecept g:phpunit unit "Foo\Bar"
79+
composer exec codecept g:phpunit unit "Foo\Bar"
8080
```
8181
8282
This generates a standard test inherited from `PHPUnit_Framework_TestCase`. For integration tests you may use Codeception-enhanced format which allows accessing services from DI container, use Eloquent, Data Factories. To have it create a unit test extending `Codeception\Test\Unit` class:
8383
8484
```
85-
php bin/codecept g:test unit "Foo\Bar"
85+
composer exec codecept g:test unit "Foo\Bar"
8686
```
8787
8888
You will need to enable Laravel5 module in `unit.suite.yml` to have its methods inside `$this->tester` object.
@@ -133,7 +133,7 @@ Laravel5 module won't be able to wrap test execution in a transaction but method
133133
API Tests are done at functional testing level but instead of testing HTML responses on user actions, they test requests and responses via protocols like REST or SOAP. To create api tests you should create a suite for them
134134

135135
```
136-
php bin/codecept g:suite api
136+
composer exec codecept g:suite api
137137
```
138138
139139
You will need to enable `REST`, `Laravel5` module in `tests/api.suite.yml`:

0 commit comments

Comments
 (0)
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