| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function testSetErrorMessage(string $method): void |
||
| 34 | { |
||
| 35 | // setup |
||
| 36 | $application = new CommonApplication(new HtmlTemplate([ |
||
| 37 | __DIR__ . '/Res/', |
||
| 38 | __DIR__ |
||
| 39 | ])); |
||
| 40 | |||
| 41 | // test body |
||
| 42 | $application->$method('test-error'); |
||
| 43 | |||
| 44 | // assertions |
||
| 45 | $this->assertStringContainsString('error', $application->getTemplate() |
||
| 46 | ->getPageVar('action-message')); |
||
| 47 | } |
||
| 49 |