SettingsPresenterTest::testStylesSettings()   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 SettingsPresenterTest extends \WebCMS\Tests\PresenterTestCase
4
{
5
    public function setUp()
6
    {
7
        parent::setUp();
8
9
        $this->createPresenter('Admin:Settings');
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 testPictures()
22
    {
23
        $response = $this->makeRequest('pictures');
24
25
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
26
27
        $this->getResponse($response);
28
    }
29
30
    public function testThumbnailDialog()
31
    {
32
        $response = $this->makeRequest('addThumbnail');
33
34
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
35
36
        $this->getResponse($response);
37
    }
38
39
    public function testEmails()
40
    {
41
        $response = $this->makeRequest('emails');
42
43
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
44
45
        $this->getResponse($response);
46
    }
47
48
    public function testBoxesSettings()
49
    {
50
        $response = $this->makeRequest('boxesSettings');
51
52
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
53
54
        $this->getResponse($response);
55
    }
56
57
    public function testScriptsSettings()
58
    {
59
        $response = $this->makeRequest('scriptsSettings');
60
61
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
62
63
        $this->getResponse($response);
64
    }
65
66
    public function testStylesSettings()
67
    {
68
        $response = $this->makeRequest('stylesSettings');
69
70
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
71
72
        $this->getResponse($response);
73
    }
74
75
    public function testSeoSettings()
76
    {
77
        $response = $this->makeRequest('seoSettings');
78
79
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
80
81
        $this->getResponse($response);
82
    }
83
84
    public function testProjectSpecifics()
85
    {
86
        $response = $this->makeRequest('project');
87
88
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
89
90
        $this->getResponse($response);
91
    }
92
93
    public function testApi()
94
    {
95
        $response = $this->makeRequest('api');
96
97
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
98
99
        $this->getResponse($response);
100
    }
101
}
102