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