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