Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class ActivityControllerTest extends AbstractControllerTestCase |
||
6 | { |
||
7 | protected function assertCommonThings(array $params): void |
||
8 | { |
||
9 | $this->assertModule($params['module']); |
||
10 | $this->assertController($params['controller']); |
||
11 | $this->assertAction($params['action']); |
||
12 | } |
||
13 | |||
14 | public function testIndexAction(): void |
||
15 | { |
||
16 | $params = ['action' => 'index', 'controller' => 'activity', 'module' => 'default']; |
||
17 | $url = $this->url($this->urlizeOptions($params)); |
||
18 | $this->dispatch($url); |
||
19 | |||
20 | // assertions |
||
21 | $this->assertCommonThings($params); |
||
22 | |||
23 | $this->assertQueryContentContains('h2', 'Overall activity'); |
||
24 | } |
||
25 | |||
26 | public function testUserAction(): void |
||
36 | } |
||
37 | |||
38 | public function testMovieAction(): void |
||
48 | } |
||
49 | } |
||
50 |