$summit_id, 'member_id' => 'me', ); $headers = array ( "HTTP_Authorization" => " Bearer " . $this->access_token, "CONTENT_TYPE" => "application/json", ); $response = $this->action ( "POST", "OAuth2SummitMembersApiController@createScheduleShareableLink", $params, [], [], [], $headers ); $content = $response->getContent(); $this->assertResponseStatus(201); $link = json_decode($content); return $link; } public function testGetICS($summit_id = 27){ $link = $this->testCreateShareableLink($summit_id); $params = array ( 'id' => $summit_id, 'cid' => $link->cid, ); $headers = array ( "CONTENT_TYPE" => "application/json", ); $response = $this->action ( "GET", "OAuth2SummitMembersApiController@getCalendarFeedICS", $params, [], [], [], $headers ); $ics = $response->getContent(); $this->assertResponseStatus(200); return $ics; } }