From 30cf08b27eb5d9f4926d1da29ef3da69b4a9dee4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 27 Sep 2013 19:38:12 +0200 Subject: [PATCH] CMSMain assertion fail due to escaping Validation messages are now HTML entity escaped when output to the user, the assertion needs to reflect that --- tests/controller/CMSMainTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/controller/CMSMainTest.php b/tests/controller/CMSMainTest.php index ade03182..a634e92f 100644 --- a/tests/controller/CMSMainTest.php +++ b/tests/controller/CMSMainTest.php @@ -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() );