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

FaqControllerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 2
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIndexAction() 0 13 1
1
<?php
2
3
class FaqControllerTest extends AbstractControllerTestCase
4
{
5
    public function testIndexAction(): void
6
    {
7
        $params = ['action' => 'index', 'controller' => 'faq', '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('li', 'Create an account');
17
        $this->assertQueryContentContains('ul.statusHelp li', 'I want to see this movie');
18
    }
19
}
20