| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | public function testGravatarAction(): void |
||
| 6 | { |
||
| 7 | $params = ['action' => 'gravatar.css', 'controller' => 'css', '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->assertHeaderContains('Content-Type', 'text/css'); |
||
| 17 | $this->assertContentContains('span.gravatar'); |
||
| 18 | $this->assertContentContains('span.gravatar.big'); |
||
| 19 | } |
||
| 21 |