Failed Conditions
Push — master ( 008819...bd15c6 )
by Adrien
04:03
created

IndexControllerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIndexAction() 0 12 1
1
<?php
2
3
namespace mQueueTest\Controller;
4
5
class IndexControllerTest extends AbstractControllerTestCase
6
{
7
    public function testIndexAction(): void
8
    {
9
        $params = ['action' => 'index', 'controller' => 'index', 'module' => 'default'];
10
        $url = $this->url($this->urlizeOptions($params));
11
        $this->dispatch($url);
12
13
        // assertions
14
        $this->assertModule($params['module']);
15
        $this->assertController($params['controller']);
16
        $this->assertAction($params['action']);
17
18
        $this->assertRedirectTo('/activity');
19
    }
20
}
21