| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function testMqueueUserJsAction(): void |
||
| 24 | { |
||
| 25 | $params = ['action' => 'mqueue-user.js', 'controller' => 'js', 'module' => 'default']; |
||
| 26 | $url = $this->url($this->urlizeOptions($params)); |
||
| 27 | $this->dispatch($url); |
||
| 28 | |||
| 29 | // assertions |
||
| 30 | $this->assertModule($params['module']); |
||
| 31 | $this->assertController($params['controller']); |
||
| 32 | $this->assertAction($params['action']); |
||
| 33 | |||
| 34 | $this->assertHeaderContains('Content-Type', 'application/javascript'); |
||
| 35 | $this->assertContentContains('document.evaluate'); |
||
| 36 | } |
||
| 38 |