PHP Class Scalr\Tests\Functional\Api\Service\User\V1beta0\Controller\ProjectsTest

Author: N.V.
Show file Open project: scalr/scalr

Public Methods

Method Description
createTestProject ( array $data = [] ) : ProjectEntity Creates new project for testing purposes
getProject ( string $projectId ) : Scalr\Tests\Functional\Api\ApiTestResponse Get Project using identifier
listProjects ( array $filters = [], integer $maxResults = null ) : array Return list of Projects available in this environment
postProject ( array &$projectData ) : Scalr\Tests\Functional\Api\ApiTestResponse Create new test project using api request
projectToDelete ( $projectId )
tearDownAfterClass ( ) Also Removes Project properties generated for test
testComplex ( )

Method Details

createTestProject() public method

Creates new project for testing purposes
public createTestProject ( array $data = [] ) : ProjectEntity
$data array optional
return Scalr\Stats\CostAnalytics\Entity\ProjectEntity

getProject() public method

Get Project using identifier
public getProject ( string $projectId ) : Scalr\Tests\Functional\Api\ApiTestResponse
$projectId string project identifier
return Scalr\Tests\Functional\Api\ApiTestResponse

listProjects() public method

Return list of Projects available in this environment
public listProjects ( array $filters = [], integer $maxResults = null ) : array
$filters array optional Filterable properties
$maxResults integer optional Max Results
return array

postProject() public method

Create new test project using api request
public postProject ( array &$projectData ) : Scalr\Tests\Functional\Api\ApiTestResponse
$projectData array
return Scalr\Tests\Functional\Api\ApiTestResponse

projectToDelete() public method

public projectToDelete ( $projectId )

tearDownAfterClass() public static method

public static tearDownAfterClass ( )

testComplex() public method

public testComplex ( )