CMSMain assertion fail due to escaping

Validation messages are now HTML entity escaped when output to the user,
the assertion needs to reflect that
This commit is contained in:
Ingo Schommer 2013-09-27 19:38:12 +02:00
parent dc1ae03fec
commit 7ec9596b99

View File

@ -302,7 +302,7 @@ class CMSMainTest extends FunctionalTest {
);
$this->assertFalse($response->isError());
$this->assertContains(
_t('SiteTree.PageTypeNotAllowed', array('type' => 'Page')),
htmlentities(_t('SiteTree.PageTypeNotAllowed', array('type' => 'Page'))),
$response->getBody()
);