Failed Conditions
Push — master ( 1a6d63...dcbc0d )
by Adrien
05:26
created

IndexControllerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

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