From fa2a2df5515dbab3ac467a10b44a9143f199e8b2 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 1 Nov 2008 13:42:19 +0000 Subject: [PATCH] BUGFIX Fixed CMSMainTest to check for translated entities to avoid failing tests with i18n enabled git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65024 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/CMSMainTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/CMSMainTest.php b/tests/CMSMainTest.php index f0567263..36cebaad 100644 --- a/tests/CMSMainTest.php +++ b/tests/CMSMainTest.php @@ -12,7 +12,10 @@ class CMSMainTest extends SapphireTest { )); $response = Director::test("admin/cms/publishall", array('confirm' => 1), $session); - $this->assertContains('Done: Published 5 pages', $response->getBody()); + $this->assertContains( + sprintf(_t('CMSMain.PUBPAGES',"Done: Published %d pages"), 5), + $response->getBody() + ); $response = Director::test("admin/cms/publishitems", array('csvIDs' => '1,2', 'ajax' => 1), $session); $this->assertContains('setNodeTitle(1, \'Page 1\');', $response->getBody());