mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
PR fixes.
This commit is contained in:
parent
26d59944e0
commit
b864c11b12
@ -458,6 +458,17 @@ class DataListTest extends SapphireTest
|
|||||||
$this->assertNull($list->byID($id));
|
$this->assertNull($list->byID($id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test DataList->removeAll()
|
||||||
|
*/
|
||||||
|
public function testRemoveAll()
|
||||||
|
{
|
||||||
|
$list = Team::get();
|
||||||
|
$this->assertGreaterThan(0, $list->count());
|
||||||
|
$list->removeAll();
|
||||||
|
$this->assertCount(0, $list);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test DataList->canSortBy()
|
* Test DataList->canSortBy()
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user