Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
3 | class ActivityControllerTest extends AbstractControllerTestCase |
||
4 | { |
||
5 | protected function assertCommonThings(array $params): void |
||
10 | } |
||
11 | |||
12 | public function testIndexAction(): void |
||
13 | { |
||
14 | $params = ['action' => 'index', 'controller' => 'activity', 'module' => 'default']; |
||
15 | $url = $this->url($this->urlizeOptions($params)); |
||
16 | $this->dispatch($url); |
||
17 | |||
18 | // assertions |
||
19 | $this->assertCommonThings($params); |
||
20 | |||
21 | $this->assertQueryContentContains('h2', 'Overall activity'); |
||
22 | } |
||
23 | |||
24 | public function testUserAction(): void |
||
25 | { |
||
26 | $params = ['action' => 'index', 'controller' => 'activity', 'module' => 'default', 'user' => $this->testUser->id]; |
||
|
|||
27 | $url = $this->url($this->urlizeOptions($params)); |
||
28 | $this->dispatch($url); |
||
29 | |||
30 | // assertions |
||
31 | $this->assertCommonThings($params); |
||
32 | |||
33 | $this->assertQueryContentContains('h2', 'Activity for'); |
||
34 | } |
||
35 | |||
36 | public function testMovieAction(): void |
||
46 | } |
||
47 | } |
||
48 |