Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | final class BlockTest extends TestCase |
||
19 | { |
||
20 | use TestTrait; |
||
21 | |||
22 | /** |
||
23 | * @throws CircularReferenceException |
||
24 | * @throws InvalidConfigException |
||
25 | * @throws NotFoundException |
||
26 | * @throws NotInstantiableException |
||
27 | */ |
||
28 | public function testBlock(): void |
||
29 | { |
||
30 | Block::widget()->id('testme')->begin(); |
||
|
|||
31 | echo '<block-testme>'; |
||
32 | Block::end(); |
||
33 | |||
34 | $this->assertStringContainsString('<block-testme>', $this->webView->getBlock('testme')); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @throws CircularReferenceException |
||
39 | * @throws InvalidConfigException |
||
40 | * @throws NotFoundException |
||
41 | * @throws NotInstantiableException |
||
42 | */ |
||
43 | public function testBlockRenderInPlaceTrue(): void |
||
50 | } |
||
51 | } |
||
52 |