mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Fix tests on PHPUnit 3.4
This commit is contained in:
parent
4c1cb59116
commit
1a36f92bb9
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user