/** * Method to test check(). * * @return void * * @expectedException \UnexpectedValueException * * @covers Windwalker\Record\NestedRecord::check */ public function testCheckParentIdNotExists() { $this->instance->parent_id = 99; $this->instance->check(); }