PR fixes.

This commit is contained in:
Mojmir Fendek 2022-05-13 12:11:18 +12:00
parent 26d59944e0
commit b864c11b12

View File

@ -458,6 +458,17 @@ class DataListTest extends SapphireTest
$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()
*/