예제 #1
0
 /**
  * @covers PersonController::Remove
  * @todo Implement testRemove().
  */
 public function testRemove()
 {
     $request = Application::getInstance()->request;
     $request->setParams(array('name' => 'Louise the Zero', 'type' => 'adult'));
     $res = $this->object->Add();
     $this->assertTrue(isset($res['id']));
     $id = $res['id'];
     $request->setParams(array('id' => $id));
     $res = $this->object->Remove();
     $this->assertFalse(isset($res['error']));
 }