Property | Type | Description | |
---|---|---|---|
$_testEnvId | integer | ID of the user's environment | |
$_testUserId | integer | ID of the user which is used in the functional test |
Method | Description | |
---|---|---|
assertResponseDataHasKeys ( array $keys, array $responseData, boolean $checkAll = false, string $dataColumnName = 'data' ) | Asserts that response data array has necessary data keys. | |
getEnvironment ( ) : Scalr_Environment | Gets a test environment instance | |
getRequest ( $requestType = Scalr_UI_Request::REQUEST_TYPE_UI, $requestClass = null, striing $uri, array $parameters = [], string $method = 'GET', array $server = [], array $files = [] ) : Scalr_UI_Request | Prepares request | |
getUser ( ) : Scalr_Account_user | Gets an test User instance | |
internalRequest ( string $uri, array $parameters = [] ) : mixed | Get internal request to the controller's action ignoring checking aliases | |
isAdminUserTestClass ( ) : boolean | Returns true if current test is for Scalr Admin privilege | |
markTestSkippedIfFunctionalTestsDisabled ( ) | Marks test skipped if functional tests are disabled | |
markTestSkippedIfPlatformDisabled ( string $platform ) | Skip test if platform does not enabled | |
request ( string $uri, array $parameters = [], string $method = 'GET', array $server = [], array $files = [] ) : array | string | Makes a request to site | |
setUp ( ) | ||
tearDown ( ) |
protected assertResponseDataHasKeys ( array $keys, array $responseData, boolean $checkAll = false, string $dataColumnName = 'data' ) | ||
$keys | array | Array of the keys or Index array that looks like array($key => $constraint) |
$responseData | array | Response array |
$checkAll | boolean | optional Whether it should check all data array or only the first. |
$dataColumnName | string | optional The name of the data column |
protected getEnvironment ( ) : Scalr_Environment | ||
return | Scalr_Environment | Returns environment instance |
protected getRequest ( $requestType = Scalr_UI_Request::REQUEST_TYPE_UI, $requestClass = null, striing $uri, array $parameters = [], string $method = 'GET', array $server = [], array $files = [] ) : Scalr_UI_Request | ||
$uri | striing | A request uri |
$parameters | array | optional Request parameters |
$method | string | optional HTTP Request method |
$server | array | optional Additional server options |
$files | array | optional Uploaded files array |
return | Scalr_UI_Request | Returns array which represents returned json object or raw body content in the case if the response is not a json. |
protected getUser ( ) : Scalr_Account_user | ||
return | Scalr_Account_user | Returns user instance |
protected isAdminUserTestClass ( ) : boolean | ||
return | boolean |
protected markTestSkippedIfFunctionalTestsDisabled ( ) |
protected markTestSkippedIfPlatformDisabled ( string $platform ) | ||
$platform | string |
protected request ( string $uri, array $parameters = [], string $method = 'GET', array $server = [], array $files = [] ) : array | string | ||
$uri | string | A request uri |
$parameters | array | optional Request parameters |
$method | string | optional HTTP Request method |
$server | array | optional Additional server options |
$files | array | optional Uploaded files array |
return | array | string | Returns array which represents returned json object or raw body content in the case if the responce is not a json. |
protected int $_testEnvId | ||
return | integer |
protected int $_testUserId | ||
return | integer |