/** * Tests if the attempt of updating a hitch fails if the textnodeId is empty. */ public function testSetHitchWithEmptyTextnodeId() { $hitch = array(); $hitch['textnodeId'] = "55f5ab3708985c4b188b4577"; $hitch['description'] = "Continue."; $hitch['status'] = Textnode::HITCH_STATUS_ACTIVE; $this->textnode->appendHitch($hitch); $this->assertEquals($this->textnode->getHitchCount(), 1); $hitch = array(); $hitch['textnodeId'] = null; $hitch['description'] = "Abort."; $hitch['status'] = Textnode::HITCH_STATUS_INACTIVE; $result = $this->textnode->setHitch($this->textnode->getHitchCount() - 1, $hitch); $this->assertFalse($result); }