X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/31f5786e01fc5ed439f347c6979679612baca4fb..refs/pull/2274/head:/tests/Entity/PageContentTest.php diff --git a/tests/Entity/PageContentTest.php b/tests/Entity/PageContentTest.php index 8a78c8ac0..d3b6224c4 100644 --- a/tests/Entity/PageContentTest.php +++ b/tests/Entity/PageContentTest.php @@ -1,7 +1,8 @@ - 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' => '

"Hello & welcome"

', + ]); + + $page->refresh(); + $this->assertEquals('"Hello & welcome"', $page->text); + } }