PHP Class Scalr\Tests\Api\ApiEntityAdapterTest

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

Protected Properties

Свойство Type Description
$entity2Adapter Scalr\Tests\Fixtures\Api\DataType\TestApiEntity2Adapter Test adapter with setting properties

Méthodes publiques

Méthode 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 méthode

Provider for testValidateForbidSymbol
public notValidRequestObjectsProvider ( ) : array
Résultat array

providerConvertInputValue() public méthode

Provider for testConvertInputValue
public providerConvertInputValue ( ) : array
Résultat array

setUpBeforeClass() public static méthode

Setups test adapter
public static setUpBeforeClass ( )

testConvertInputValue() public méthode

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

testToEntity() public méthode

public testToEntity ( )

testValidateForbidSymbol() public méthode

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 méthode

Test validate object
public testValidateObject ( )

Property Details

$entity2Adapter protected_oe static_oe property

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