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() {