LanguagesPresenterTest::testDefault()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
class LanguagesPresenterTest extends \WebCMS\Tests\PresenterTestCase
4
{
5
    public function setUp()
6
    {
7
        parent::setUp();
8
9
        $this->createPresenter('Admin:Languages');
10
    }
11
12
    public function testDefault()
13
    {
14
        $response = $this->makeRequest();
15
16
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
17
18
        $this->getResponse($response);
19
    }
20
21
    public function testUpdateLanguage()
22
    {
23
        $response = $this->makeRequest('updateLanguage', 'GET', array(
24
            'id' => $this->language->getId(),
25
        ));
26
27
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
28
29
        $this->getResponse($response);
30
    }
31
}
32