Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
9 | class ReindexTaskTest extends SapphireTest |
||
10 | { |
||
11 | public function testCreateIndexTask(): void |
||
12 | { |
||
13 | $getVars = ['index' => 'sitetree']; |
||
14 | $request = new HTTPRequest('GET', '/dev/tasks/index', $getVars); |
||
15 | $task = new ReindexTask(); |
||
16 | $response = $task->run($request); |
||
17 | |||
18 | // no response is returned from the task if it is successful |
||
19 | $this->assertNull($response); |
||
20 | } |
||
21 | |||
22 | |||
23 | public function testCreateIndexTaskNoAccess(): void |
||
31 | } |
||
32 | } |
||
33 |