Beispiel #1
0
 /**
  * @expectedException \Dive\Collection\CollectionException
  */
 public function testRemoveNotExistingRecordWillThrowException()
 {
     $table = $this->userColl->getTable();
     $user = $table->createRecord(array('username' => 'notexistinguser', 'password' => 'secretnothing'), false);
     $this->assertFalse($this->userColl->has($user));
     $this->assertFalse($this->userColl->deleteRecord($user));
 }