mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 05:36:00 +00: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,
|
'level' => 3,
|
||||||
], $navMap[2]);
|
], $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…
Reference in New Issue
Block a user