| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ShortcodeExtensionTest extends KernelTestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @test |
||
| 14 | */ |
||
| 15 | public function resolve_placeholder_shortcode_in_twig(): void |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @test |
||
| 22 | */ |
||
| 23 | public function filter_returns_safe_html(): void |
||
| 24 | { |
||
| 25 | self::assertSame('<p>HTML</p>', $this->renderTemplate('{{ "<p>HTML</p>" | shortcodes }}')); |
||
| 26 | } |
||
| 27 | |||
| 28 | private function renderTemplate(string $template): string |
||
| 38 | } |
||
| 39 | } |
||
| 40 |