PHP 클래스 Scalr\Tests\Functional\Api\V2\TestData\ApiFixture

부터: 5.11 (03.12.2015)
저자: Andrii Penchuk ([email protected])
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$aclTypes array Acl types
$adapterName string Entity adapter name
$apiVersion string API version
$defaultOperation array Default fixtures operation
$env Scalr\Model\Entity\Account\Environment Environment instance
$sets array Data from fixtures
$testEnvId integer Environment identifier
$testUserId integer User identifier
$type string Api endpoint type
$user Scalr\Model\Entity\Account\User Test user
$userTypes array Users types

공개 메소드들

메소드 설명
__construct ( array $sets, string $type ) TestDataFixtures constructor.
loadData ( string $fixtures, string $type ) : array Generate data for ApiTest
prepareTestData ( ) Generate test objects for ApiTest

보호된 메소드들

메소드 설명
prepareAccountCostCenter ( string $name ) Add CostCenter to account
prepareAccountTeam ( string $name ) Creates and save Account Team entities with data from fixtures
prepareCostCenter ( string $name ) Creates and save CostCenter entity with data from fixtures
prepareData ( string $name ) Check Data if Data has reference another project resolve this data property
prepareFarm ( string $name ) Creates and save Farm entity with data from fixtures
prepareFarmRole ( string $name ) Creates and save farm role entity with data from fixtures
preparePathInfo ( ) : array Prepare options for each patch options
prepareProjects ( string $name ) Add Project entities for test
prepareRole ( string $name ) Create role entity with data from fixtures
prepareRoleCategory ( string $name ) Create role category entity with data from fixtures
prepareRoleImage ( string $name ) Creates and save RoleImage entity with data from fixtures
prepareScript ( string $name ) Creates and save Script entities with data from fixtures
resolveProperty ( $value, $index ) : array If property has reference to the object, will return property or object

메소드 상세

__construct() 공개 메소드

TestDataFixtures constructor.
public __construct ( array $sets, string $type )
$sets array data from yaml fixtures
$type string api specifications type

loadData() 공개 정적인 메소드

Generate data for ApiTest
public static loadData ( string $fixtures, string $type ) : array
$fixtures string patch to fixtures directory
$type string api specifications type
리턴 array

prepareAccountCostCenter() 보호된 메소드

Add CostCenter to account
protected prepareAccountCostCenter ( string $name )
$name string CostCenter data name

prepareAccountTeam() 보호된 메소드

Creates and save Account Team entities with data from fixtures
protected prepareAccountTeam ( string $name )
$name string Account Team data name

prepareCostCenter() 보호된 메소드

Creates and save CostCenter entity with data from fixtures
protected prepareCostCenter ( string $name )
$name string CostCenter data name

prepareData() 보호된 메소드

Check Data if Data has reference another project resolve this data property
protected prepareData ( string $name )
$name string data name

prepareFarm() 보호된 메소드

Creates and save Farm entity with data from fixtures
protected prepareFarm ( string $name )
$name string Role category data name

prepareFarmRole() 보호된 메소드

Creates and save farm role entity with data from fixtures
protected prepareFarmRole ( string $name )
$name string Role category data name

preparePathInfo() 보호된 메소드

Prepare options for each patch options
protected preparePathInfo ( ) : array
리턴 array

prepareProjects() 보호된 메소드

Add Project entities for test
protected prepareProjects ( string $name )
$name string Project data name

prepareRole() 보호된 메소드

Create role entity with data from fixtures
protected prepareRole ( string $name )
$name string Role category data name

prepareRoleCategory() 보호된 메소드

Create role category entity with data from fixtures
protected prepareRoleCategory ( string $name )
$name string Role category data name

prepareRoleImage() 보호된 메소드

Creates and save RoleImage entity with data from fixtures
protected prepareRoleImage ( string $name )
$name string Role category data name

prepareScript() 보호된 메소드

Creates and save Script entities with data from fixtures
protected prepareScript ( string $name )
$name string Script data name

prepareTestData() 추상적인 공개 메소드

Generate test objects for ApiTest
abstract public prepareTestData ( )

resolveProperty() 보호된 메소드

If property has reference to the object, will return property or object
protected resolveProperty ( $value, $index ) : array
$value string property name
$index int property value
리턴 array

프로퍼티 상세

$aclTypes 보호되어 있는 정적으로 프로퍼티

Acl types
protected static array $aclTypes
리턴 array

$adapterName 보호되어 있는 프로퍼티

Entity adapter name
protected string $adapterName
리턴 string

$apiVersion 보호되어 있는 정적으로 프로퍼티

API version
protected static string $apiVersion
리턴 string

$defaultOperation 보호되어 있는 정적으로 프로퍼티

Default fixtures operation
protected static array $defaultOperation
리턴 array

$env 보호되어 있는 정적으로 프로퍼티

Environment instance
protected static Environment,Scalr\Model\Entity\Account $env
리턴 Scalr\Model\Entity\Account\Environment

$sets 보호되어 있는 프로퍼티

Data from fixtures
protected array $sets
리턴 array

$testEnvId 보호되어 있는 정적으로 프로퍼티

Environment identifier
protected static int $testEnvId
리턴 integer

$testUserId 보호되어 있는 정적으로 프로퍼티

User identifier
protected static int $testUserId
리턴 integer

$type 보호되어 있는 프로퍼티

Api endpoint type
protected string $type
리턴 string

$user 보호되어 있는 정적으로 프로퍼티

Test user
protected static User,Scalr\Model\Entity\Account $user
리턴 Scalr\Model\Entity\Account\User

$userTypes 보호되어 있는 정적으로 프로퍼티

Users types
protected static array $userTypes
리턴 array