Ejemplo n.º 1
0
 /**
  * Method to test delete().
  *
  * @return void
  *
  * @expectedException \RuntimeException
  *
  * @covers Windwalker\Record\NestedRecord::delete
  */
 public function testDelete()
 {
     // Before
     $data = array('title' => 'Rose', 'alias' => 'rose');
     $this->instance->reset(true)->bind($data)->setLocation(2, NestedRecord::POSITION_BEFORE)->store();
     $this->instance->delete(8);
     $this->instance->reset(true)->load(8);
 }