|
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
|
|
|
|