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

AboutControllerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
c 2
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 AboutControllerTest extends AbstractControllerTestCase
4
{
5
    public function testIndexAction(): void
6
    {
7
        $params = ['action' => 'index', 'controller' => 'about', '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->assertQueryContentContains('p', 'This project started as a personal need');
17
    }
18
}
19