| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function properlyCreatesExceptionFromNotFoundTag(): void |
||
| 16 | { |
||
| 17 | $tag = 'foo'; |
||
| 18 | $expectedMessage = sprintf('Tag with name "%s" could not be found', $tag); |
||
| 19 | $e = TagNotFoundException::fromTag($tag); |
||
| 20 | |||
| 21 | $this->assertEquals($expectedMessage, $e->getMessage()); |
||
| 22 | $this->assertEquals($expectedMessage, $e->getDetail()); |
||
| 23 | $this->assertEquals('Tag not found', $e->getTitle()); |
||
| 24 | $this->assertEquals('TAG_NOT_FOUND', $e->getType()); |
||
| 25 | $this->assertEquals(['tag' => $tag], $e->getAdditionalData()); |
||
| 26 | $this->assertEquals(404, $e->getStatus()); |
||
| 27 | } |
||
| 29 |