UpdatePresenterTest   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 7
lcom 1
cbo 1
dl 0
loc 61
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
A testDefault() 0 8 1
A testClearCache() 0 6 1
A testAddModuleDialog() 0 8 1
A testFunctions() 0 8 1
A testLog() 0 8 1
A testCreateModuleDialog() 0 8 1
1
<?php
2
3
class UpdatePresenterTest extends \WebCMS\Tests\PresenterTestCase
4
{
5
    public function setUp()
6
    {
7
        parent::setUp();
8
9
        $this->createPresenter('Admin:Update');
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 testClearCache()
22
    {
23
        $response = $this->makeRequest('clearCache');
24
25
        $this->assertInstanceOf('Nette\Application\Responses\RedirectResponse', $response);
26
    }
27
28
    public function testAddModuleDialog()
29
    {
30
        $response = $this->makeRequest('addModule');
31
32
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
33
34
        $this->getResponse($response);
35
    }
36
37
    public function testFunctions()
38
    {
39
        $response = $this->makeRequest('functions');
40
41
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
42
43
        $this->getResponse($response);
44
    }
45
46
    public function testLog()
47
    {
48
        $response = $this->makeRequest('log');
49
50
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
51
52
        $this->getResponse($response);
53
    }
54
55
    public function testCreateModuleDialog()
56
    {
57
        $response = $this->makeRequest('createModule');
58
59
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
60
61
        $this->getResponse($response);
62
    }
63
}
64