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 0b073d2d0f
commit 30cf08b27e
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,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()
);