Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
7 | public function testGravatarAction(): void |
||
8 | { |
||
9 | $params = ['action' => 'gravatar.css', 'controller' => 'css', 'module' => 'default']; |
||
10 | $url = $this->url($this->urlizeOptions($params)); |
||
11 | $this->dispatch($url); |
||
12 | |||
13 | // assertions |
||
14 | $this->assertModule($params['module']); |
||
15 | $this->assertController($params['controller']); |
||
16 | $this->assertAction($params['action']); |
||
17 | |||
18 | $this->assertHeaderContains('Content-Type', 'text/css'); |
||
19 | $this->assertContentContains('span.gravatar'); |
||
20 | $this->assertContentContains('span.gravatar.big'); |
||
21 | } |
||
23 |