コード例 #1
0
 /**
  * @param $id
  * @depends testUpdate
  */
 public function testDelete($id)
 {
     /**
      * @type Records $recordObj
      */
     $recordObj = $this->workflow->get($id);
     $this->workflow->delete($recordObj);
     try {
         $this->workflow->get($id);
         $this->fail('Expected Exception');
     } catch (NotFoundException $nf) {
         $this->assertInstanceOf('\\SysEleven\\PowerDnsBundle\\Lib\\Exceptions\\NotFoundException', $nf);
     }
 }