mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-03-24 15:15:14 +08:00
Added test to check text gen decodes HTML entities
This commit is contained in:
parent
458aa72c2f
commit
2e39e45886
@ -304,4 +304,18 @@ class PageContentTest extends TestCase
|
||||
'level' => 3,
|
||||
], $navMap[2]);
|
||||
}
|
||||
|
||||
public function test_page_text_decodes_html_entities()
|
||||
{
|
||||
$page = Page::query()->first();
|
||||
|
||||
$this->actingAs($this->getAdmin())
|
||||
->put($page->getUrl(''), [
|
||||
'name' => 'Testing',
|
||||
'html' => '<p>Hello & welcome</p>',
|
||||
]);
|
||||
|
||||
$page->refresh();
|
||||
$this->assertEquals('Hello & welcome', $page->text);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user