Свойство | Тип | Описание | |
---|---|---|---|
$aclTypes | array | Acl types | |
$adapterName | string | Entity adapter name | |
$apiVersion | string | API version | |
$defaultOperation | array | Default fixtures operation | |
$env | Environment instance | ||
$sets | array | Data from fixtures | |
$testEnvId | integer | Environment identifier | |
$testUserId | integer | User identifier | |
$type | string | Api endpoint type | |
$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 |
public __construct ( array $sets, string $type ) | ||
$sets | array | data from yaml fixtures |
$type | string | api specifications type |
protected prepareAccountCostCenter ( string $name ) | ||
$name | string | CostCenter data name |
protected prepareAccountTeam ( string $name ) | ||
$name | string | Account Team data name |
protected prepareCostCenter ( string $name ) | ||
$name | string | CostCenter data name |
protected prepareData ( string $name ) | ||
$name | string | data name |
protected prepareFarm ( string $name ) | ||
$name | string | Role category data name |
protected prepareFarmRole ( string $name ) | ||
$name | string | Role category data name |
protected preparePathInfo ( ) : array | ||
Результат | array |
protected prepareProjects ( string $name ) | ||
$name | string | Project data name |
protected prepareRole ( string $name ) | ||
$name | string | Role category data name |
protected prepareRoleCategory ( string $name ) | ||
$name | string | Role category data name |
protected prepareRoleImage ( string $name ) | ||
$name | string | Role category data name |
protected prepareScript ( string $name ) | ||
$name | string | Script data name |
abstract public prepareTestData ( ) |
protected resolveProperty ( $value, $index ) : array | ||
$value | string property name | |
$index | int property value | |
Результат | array |
protected static array $aclTypes | ||
Результат | array |
protected static string $apiVersion | ||
Результат | string |
protected static array $defaultOperation | ||
Результат | array |
protected static Environment,Scalr\Model\Entity\Account $env | ||
Результат |
protected static int $testEnvId | ||
Результат | integer |
protected static int $testUserId | ||
Результат | integer |
protected static User,Scalr\Model\Entity\Account $user | ||
Результат |
protected static array $userTypes | ||
Результат | array |