1, 'per_page' => 100, 'expand' => 'company,reviews', ]; $response = $this->action( "GET", "AppliancesApiController@getAll", $params, [], [], [], [] ); $content = $response->getContent(); $appliances = json_decode($content); $this->assertTrue(!is_null($appliances)); $this->assertResponseStatus(200); } public function testGetAppliancesFilter(){ $params = [ 'filter' => 'company=@Breqwa', 'order' => '+name', 'expand' => 'company,reviews' ]; $response = $this->action( "GET", "AppliancesApiController@getAll", $params, [], [], [], [] ); $content = $response->getContent(); $appliances = json_decode($content); $this->assertTrue(!is_null($appliances)); $this->assertResponseStatus(200); } public function testGetAllDistros(){ $params = [ 'page' => 1, 'per_page' => 100, 'expand' => '', ]; $response = $this->action( "GET", "DistributionsApiController@getAll", $params, [], [], [], [] ); $content = $response->getContent(); $distros = json_decode($content); $this->assertTrue(!is_null($distros)); $this->assertResponseStatus(200); } public function testGetAllConsultants(){ $params = [ 'page' => 1, 'per_page' => 100, 'expand' => 'offices,clients,spoken_languages,configuration_management_expertise,expertise_areas,services_offered', ]; $response = $this->action( "GET", "ConsultantsApiController@getAll", $params, [], [], [], [] ); $content = $response->getContent(); $consultants = json_decode($content); $this->assertTrue(!is_null($consultants)); $this->assertResponseStatus(200); } public function testGetAllPrivateClouds(){ $params = [ 'page' => 1, 'per_page' => 100, 'expand' => '', ]; $response = $this->action( "GET", "PrivateCloudsApiController@getAll", $params, [], [], [], [] ); $content = $response->getContent(); $clouds = json_decode($content); $this->assertTrue(!is_null($clouds)); $this->assertResponseStatus(200); } public function testGetAllPublicClouds(){ $params = [ 'page' => 1, 'per_page' => 100, 'expand' => '', ]; $response = $this->action( "GET", "PublicCloudsApiController@getAll", $params, [], [], [], [] ); $content = $response->getContent(); $clouds = json_decode($content); $this->assertTrue(!is_null($clouds)); $this->assertResponseStatus(200); } public function testGetAllRemoteClouds(){ $params = [ 'page' => 1, 'per_page' => 100, 'expand' => '', ]; $response = $this->action( "GET", "RemoteCloudsApiController@getAll", $params, [], [], [], [] ); $content = $response->getContent(); $clouds = json_decode($content); $this->assertTrue(!is_null($clouds)); $this->assertResponseStatus(200); } }