['name=@tip'], 'order' => '-id' ]; $headers = array("HTTP_Authorization" => " Bearer " . $this->access_token); $response = $this->action( "GET", "OAuth2CompaniesApiController@getAll", $params, array(), array(), array(), $headers ); $content = $response->getContent(); $companies = json_decode($content); $this->assertTrue(!is_null($companies)); $this->assertResponseStatus(200); } }