|
2 | 2 |
|
3 | 3 | namespace Tests\Integration; |
4 | 4 |
|
5 | | -use Codeception\TestCase\Test; |
| 5 | +use Codeception\Test\Unit; |
6 | 6 | use Nette\Application\Application; |
7 | 7 |
|
8 | 8 | /** |
9 | 9 | * @author Jáchym Toušek <[email protected]> |
10 | 10 | */ |
11 | | -class ApplicationTest extends Test |
| 11 | +class ApplicationTest extends Unit |
12 | 12 | { |
13 | 13 | public function testApplication() |
14 | 14 | { |
15 | | - $this->assertInstanceOf(Application::class, $this->guy->grabService(Application::class)); |
| 15 | + $this->assertInstanceOf(Application::class, $this->tester->grabService(Application::class)); |
16 | 16 | } |
17 | 17 |
|
18 | 18 | public function testPage() |
19 | 19 | { |
20 | | - $this->guy->amOnPage('/article/page'); |
21 | | - $this->guy->seeResponseCodeIs(200); |
22 | | - $this->guy->see('headline', 'h1'); |
| 20 | + $this->tester->amOnPage('/article/page'); |
| 21 | + $this->tester->seeResponseCodeIs(200); |
| 22 | + $this->tester->see('headline', 'h1'); |
23 | 23 | } |
24 | 24 |
|
25 | 25 | public function testLink() |
26 | 26 | { |
27 | | - $this->guy->amOnPage('/article/link'); |
28 | | - $this->guy->seeResponseCodeIs(200); |
29 | | - $this->guy->see('Normal link'); |
30 | | - $this->guy->seeLink('Normal link', '/article/page'); |
| 27 | + $this->tester->amOnPage('/article/link'); |
| 28 | + $this->tester->seeResponseCodeIs(200); |
| 29 | + $this->tester->see('Normal link'); |
| 30 | + $this->tester->seeLink('Normal link', '/article/page'); |
31 | 31 | } |
32 | 32 |
|
33 | 33 | public function testRedirect() |
34 | 34 | { |
35 | | - $this->guy->amOnPage('/article/redirect'); |
36 | | - $this->guy->seeResponseCodeIs(301); |
37 | | - $this->guy->seeRedirectTo('/article/page'); |
| 35 | + $this->tester->amOnPage('/article/redirect'); |
| 36 | + $this->tester->seeResponseCodeIs(301); |
| 37 | + $this->tester->seeRedirectTo('/article/page'); |
38 | 38 | } |
39 | 39 |
|
40 | 40 | public function testUnknown() |
41 | 41 | { |
42 | | - $this->guy->amOnPage('/article/unknown'); |
43 | | - $this->guy->seeResponseCodeIs(404); |
| 42 | + $this->tester->amOnPage('/article/unknown'); |
| 43 | + $this->tester->seeResponseCodeIs(404); |
44 | 44 | } |
45 | 45 | } |
0 commit comments