Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function it_can_change_final_content() |
||
12 | { |
||
13 | Event::listen(BlockContentIsRendering::class, function (BlockContentIsRendering $event) { |
||
14 | $event->setBody('<strong>' . $event->getOriginal() . '</strong>'); |
||
15 | }); |
||
16 | |||
17 | $block = $this->block->create(['name' => 'testBlock', 'en' => ['body' => 'My Block Body'], 'fr' => ['body' => 'lorem fr']]); |
||
18 | |||
19 | $this->assertEquals('<strong>My Block Body</strong>', $block->body); |
||
20 | } |
||
21 | |||
30 |