diff --git a/tests/php/ORM/DataListTest.php b/tests/php/ORM/DataListTest.php index 481b4a316..dc80aaf40 100755 --- a/tests/php/ORM/DataListTest.php +++ b/tests/php/ORM/DataListTest.php @@ -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() */