public function testClear() { $this->table->createRecord(array('id' => 7, 'username' => 'Bart'), true); $this->repository->clear(); $this->assertEquals(0, $this->repository->count()); }
/** * Clears repository */ public function clearRepository() { $this->clearRelationReferences(); $this->repository->clear(); }