public function testUpdateWithCallback() { $this->assertNotNull(InterviewTest::$interviewId); $array = ["name" => "interview 1", "questions" => [["content" => "question 1 - Updated", "readingTime" => 60, "answerTime" => 60, "number" => 1], ["content" => "question 2", "readingTime" => 60, "answerTime" => 60, "number" => 1]], "video" => "", "text" => "", "callback" => "http://myurl.com/done"]; $res = Interview::update(InterviewTest::$interviewId, $array); $this->assertEquals("Interview", get_class($res)); $this->assertTrue(isset($res->id)); $this->assertEquals("http://myurl.com/done", $res->callback); $this->assertCount(2, $res->questions); $this->assertEquals("question 1 - Updated", $res->questions[0]->content); }