Skip to content
This repository
Browse code

MINOR: Fix tests on PHPUnit 3.4

  • Loading branch information...
commit 1a36f92bb9e0d3965384e1fe161c1060671949c0 1 parent 4c1cb59
Andrew O'Neil authored March 14, 2012 chillu committed March 27, 2012
2  tests/forms/gridfield/GridFieldDeleteActionTest.php
@@ -31,7 +31,7 @@ public function testDontShowDeleteButtons() {
31 31
 		// Check that there are content
32 32
 		$this->assertEquals(4, count($content->getBySelector('.ss-gridfield-item')));
33 33
 		// Make sure that there are no delete buttons
34  
-		$this->assertEmpty($content->getBySelector('.gridfield-button-delete'), 'Delete buttons should not show when not logged in.');
  34
+		$this->assertEquals(0, count($content->getBySelector('.gridfield-button-delete')), 'Delete buttons should not show when not logged in.');
35 35
 	}
36 36
 	
37 37
 	public function testShowDeleteButtonsWithAdminPermission() {
2  tests/forms/gridfield/GridFieldEditButtonTest.php
@@ -32,7 +32,7 @@ public function testDontShowEditLinks() {
32 32
 		// Check that there are content
33 33
 		$this->assertEquals(3, count($content->getBySelector('.ss-gridfield-item')));
34 34
 		// Make sure that there are no edit links
35  
-		$this->assertEmpty($content->getBySelector('.edit-link'), 'Edit links should not show when not logged in.');
  35
+		$this->assertEquals(0, count($content->getBySelector('.edit-link')), 'Edit links should not show when not logged in.');
36 36
 	}
37 37
 	
38 38
 	public function testShowEditLinksWithAdminPermission() {

0 notes on commit 1a36f92

Please sign in to comment.
Something went wrong with that request. Please try again.