Exemplo n.º 1
0
 public function testProjectUpdateSuccessData()
 {
     //Set the Curl get call
     $this->curl->method('put')->willReturn(file_get_contents("test/Resources/Json/projects_update.json"));
     $projects = \Wistia\Wistia::getResource("Projects", "apikey");
     $projects->setCurl($this->curl);
     $results = $projects->update("ln2k6qwi9k");
     $j = json_decode($results, true);
     $this->assertTrue(isset($j["id"]));
 }
Exemplo n.º 2
0
 public function testProjectListSuccessData()
 {
     //Set the Curl get call
     $this->curl->method('get')->willReturn(file_get_contents("test/Resources/Json/projects_list.json"));
     $projects = \Wistia\Wistia::getResource("Projects", "apikey");
     $projects->setCurl($this->curl);
     $results = $projects->listOf();
     $j = json_decode($results, true);
     $this->assertTrue(is_array($j));
 }