LanguagesPresenterTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 29
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
A testDefault() 0 8 1
A testUpdateLanguage() 0 10 1
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