Exemplo n.º 1
0
 /**
  * @covers Drakojn\Io\Mapper::delete
  */
 public function testDelete()
 {
     $all = $this->object->find([]);
     $ourPick = $all[rand(0, count($all) - 1)];
     $ourClone = clone $ourPick;
     $return = $this->object->delete($ourPick);
     $this->assertTrue((bool) $return);
     $try = $this->object->find(['id' => $ourClone->getId()]);
     $this->assertEmpty($try);
 }