PHP 클래스 Scalr\Tests\Model\AbstractEntityTest

부터: 5.0 (06.05.2014)
저자: Igor Vodiasov ([email protected])
상속: extends Scalr\Tests\TestCase
파일 보기 프로젝트 열기: scalr/scalr

공개 메소드들

메소드 설명
providerBuildQuery ( ) : array Data provider for testBuildQuery
providerUpdate ( ) : array Data provider for the testUpdate
testBuildQuery ( $criteria, $conjunction, $sql )
testDelete ( )
testFunctionalSeveralUniqueKeys ( ) SCALRCORE-951 we should avoid ON DUPLICATE KEY UPDATE clause on tables with multiple unique indexes
testResultType ( )
testUpdate ( array $fieldValues, string $result, string $exeption = null )

비공개 메소드들

메소드 설명
checkResultEntries ( AbstractEntity $entity, $expectedCount, $expectedResultClass, $expectedEntryType, array $criteria = null, callable $countFunction = null )
cleanupCloudLocations ( ) Cleanups cloud locations
createTestEntities ( $db )
getCloudLocationEntity ( string $id = null, string $cloudLocation = self::CL_NAME ) : Scalr\Model\Entity\CloudLocation Creates entity
removeCloudLocationEntityByIdIfExists ( string $id ) Removes entity by identifier

메소드 상세

providerBuildQuery() 공개 메소드

Data provider for testBuildQuery
public providerBuildQuery ( ) : array
리턴 array

providerUpdate() 공개 메소드

Data provider for the testUpdate
public providerUpdate ( ) : array
리턴 array

testBuildQuery() 공개 메소드

public testBuildQuery ( $criteria, $conjunction, $sql )

testDelete() 공개 메소드

public testDelete ( )

testFunctionalSeveralUniqueKeys() 공개 메소드

SCALRCORE-951 we should avoid ON DUPLICATE KEY UPDATE clause on tables with multiple unique indexes

testResultType() 공개 메소드

public testResultType ( )

testUpdate() 공개 메소드

public testUpdate ( array $fieldValues, string $result, string $exeption = null )
$fieldValues array arguments for the update method
$result string The Result
$exeption string optional