From 390eaf93b763f6aad1d44d98b3f9fd0f64d6ca76 Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Thu, 11 Nov 2010 22:26:39 +0000 Subject: [PATCH] MINOR: hard-coded IDs replaced git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@113677 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/CMSMainTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMSMainTest.php b/tests/CMSMainTest.php index 48eac79d..b7c237d4 100644 --- a/tests/CMSMainTest.php +++ b/tests/CMSMainTest.php @@ -47,8 +47,8 @@ class CMSMainTest extends FunctionalTest { $response = Director::test("admin/cms/batchactions/publish", array('csvIDs' => implode(',', array($page1->ID, $page2->ID)), 'ajax' => 1), $this->session()); $responseData = Convert::json2array($response->getBody()); - $this->assertTrue(property_exists($responseData['modified'], '1')); - $this->assertTrue(property_exists($responseData['modified'], '2')); + $this->assertTrue(property_exists($responseData['modified'], $page1->ID)); + $this->assertTrue(property_exists($responseData['modified'], $page2->ID)); } // Get the latest version of the redirector page