From 4612b13d986a795f2b674c473b556cfda83874fc Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 12 Mar 2012 17:25:53 +0100 Subject: [PATCH] MINOR Fixed CMSMainTest to work with new breadcrumbs conventions (see 44a4e8a840) --- tests/controller/CMSMainTest.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/controller/CMSMainTest.php b/tests/controller/CMSMainTest.php index 8233850e..0a4988af 100644 --- a/tests/controller/CMSMainTest.php +++ b/tests/controller/CMSMainTest.php @@ -233,10 +233,9 @@ class CMSMainTest extends FunctionalTest { $crumbs = $parser->getBySelector('#page-title-heading .crumb'); $this->assertNotNull($crumbs); - $this->assertEquals(3, count($crumbs)); - $this->assertEquals('Pages', (string)$crumbs[0]); - $this->assertEquals('Page 3', (string)$crumbs[1]); - $this->assertEquals('Page 3.1', (string)$crumbs[2]); + $this->assertEquals(2, count($crumbs)); + $this->assertEquals('Page 3', (string)$crumbs[0]); + $this->assertEquals('Page 3.1', (string)$crumbs[1]); $this->session()->inst_set('loggedInAs', null); }