From 1a36f92bb9e0d3965384e1fe161c1060671949c0 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 14 Mar 2012 14:43:45 +1300 Subject: [PATCH] MINOR: Fix tests on PHPUnit 3.4 --- tests/forms/gridfield/GridFieldDeleteActionTest.php | 2 +- tests/forms/gridfield/GridFieldEditButtonTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/forms/gridfield/GridFieldDeleteActionTest.php b/tests/forms/gridfield/GridFieldDeleteActionTest.php index 3c09d7b6a..b29196cd8 100644 --- a/tests/forms/gridfield/GridFieldDeleteActionTest.php +++ b/tests/forms/gridfield/GridFieldDeleteActionTest.php @@ -31,7 +31,7 @@ class GridFieldDeleteActionTest extends SapphireTest { // Check that there are content $this->assertEquals(4, count($content->getBySelector('.ss-gridfield-item'))); // Make sure that there are no delete buttons - $this->assertEmpty($content->getBySelector('.gridfield-button-delete'), 'Delete buttons should not show when not logged in.'); + $this->assertEquals(0, count($content->getBySelector('.gridfield-button-delete')), 'Delete buttons should not show when not logged in.'); } public function testShowDeleteButtonsWithAdminPermission() { diff --git a/tests/forms/gridfield/GridFieldEditButtonTest.php b/tests/forms/gridfield/GridFieldEditButtonTest.php index 13b3b045b..10cf20d94 100644 --- a/tests/forms/gridfield/GridFieldEditButtonTest.php +++ b/tests/forms/gridfield/GridFieldEditButtonTest.php @@ -32,7 +32,7 @@ class GridFieldEditButtonTest extends SapphireTest { // Check that there are content $this->assertEquals(3, count($content->getBySelector('.ss-gridfield-item'))); // Make sure that there are no edit links - $this->assertEmpty($content->getBySelector('.edit-link'), 'Edit links should not show when not logged in.'); + $this->assertEquals(0, count($content->getBySelector('.edit-link')), 'Edit links should not show when not logged in.'); } public function testShowEditLinksWithAdminPermission() {