PHP Class Scalr\Tests\Api\ApiEntityAdapterTest

Since: 5.11 (11.11.2015)
Author: Andrii Penchuk ([email protected])
Inheritance: extends Scalr\Tests\TestCase
Show file Open project: scalr/scalr

Protected Properties

Property Type Description
$entity2Adapter Scalr\Tests\Fixtures\Api\DataType\TestApiEntity2Adapter Test adapter with setting properties

Public Methods

Method Description
notValidRequestObjectsProvider ( ) : array Provider for testValidateForbidSymbol
providerConvertInputValue ( ) : array Provider for testConvertInputValue
setUpBeforeClass ( ) Setups test adapter
testConvertInputValue ( string $filedType, mixed $value )
testToEntity ( )
testValidateForbidSymbol ( stdClass $object ) The test for the detection of banned symbols in the properties of an object
testValidateObject ( ) Test validate object

Method Details

notValidRequestObjectsProvider() public method

Provider for testValidateForbidSymbol

providerConvertInputValue() public method

Provider for testConvertInputValue
public providerConvertInputValue ( ) : array
return array

setUpBeforeClass() public static method

Setups test adapter
public static setUpBeforeClass ( )

testConvertInputValue() public method

public testConvertInputValue ( string $filedType, mixed $value )
$filedType string
$value mixed Value what we have to convert

testToEntity() public method

public testToEntity ( )

testValidateForbidSymbol() public method

The test for the detection of banned symbols in the properties of an object
public testValidateForbidSymbol ( stdClass $object )
$object stdClass test request object

testValidateObject() public method

Test validate object
public testValidateObject ( )

Property Details

$entity2Adapter protected static property

Test adapter with setting properties
protected static TestApiEntity2Adapter,Scalr\Tests\Fixtures\Api\DataType $entity2Adapter
return Scalr\Tests\Fixtures\Api\DataType\TestApiEntity2Adapter