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