PHP 클래스 eZ\Publish\Core\Persistence\Legacy\Tests\Content\Gateway\DoctrineDatabaseTest

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$databaseGateway eZ\Publish\Core\Persistence\Legacy\Content\Gateway\DoctrineDatabase Database gateway to test.

공개 메소드들

메소드 설명
testCreateFixtureForMapperExtractContentFromRows ( )
testCreateFixtureForMapperExtractContentFromRowsMultipleVersions ( )
testCtor ( )
testDeleteContent ( )
testDeleteField ( )
testDeleteFields ( )
testDeleteFieldsWithSecondArgument ( )
testDeleteNames ( )
testDeleteNamesWithSecondArgument ( )
testDeleteRelation ( )
testDeleteRelationWithCompositeBitmask ( )
testDeleteRelationsFrom ( )
testDeleteRelationsTo ( )
testDeleteRelationsWithSecondArgument ( )
testDeleteVersions ( )
testDeleteVersionsWithSecondArgument ( )
testGetAllLocationIds ( )
testGetFieldIdsByType ( )
testGetFieldIdsByTypeWithSecondArgument ( )
testGetLastVersionNumber ( ) *
testInsertContentObject ( )
testInsertNewAlwaysAvailableField ( )
testInsertNewField ( )
testInsertRelation ( )
testInsertVersion ( )
testListVersionNumbers ( )
testListVersions ( )
testListVersionsForUser ( )
testLoadNonExistentTranslation ( )
testLoadRelations ( )
testLoadRelationsByType ( )
testLoadRelationsByVersion ( )
testLoadRelationsNoResult ( )
testLoadReverseRelations ( )
testLoadReverseRelationsWithType ( )
testLoadVersionInfo ( )
testLoadWithAllTranslations ( )
testLoadWithSingleTranslation ( )
testSetName ( )
testSetStatus ( )
testSetStatusPublished ( )
testSetStatusUnknownVersion ( )
testUpdateAlwaysAvailableFlagAdd ( ) Test for the updateAlwaysAvailableFlag() method.
testUpdateAlwaysAvailableFlagRemove ( ) Test for the updateAlwaysAvailableFlag() method.
testUpdateContent ( )
testUpdateContentAddAlwaysAvailableFlagMultilingual ( ) Test for the updateAlwaysAvailableFlag() method.
testUpdateContentRemoveAlwaysAvailableFlagMultilingual ( ) Test for the updateAlwaysAvailableFlag() method.
testUpdateField ( )
testUpdateNonTranslatableField ( )
testUpdateVersion ( )

보호된 메소드들

메소드 설명
assertValuesInRows ( string $columnKey, array $expectedValues, array $actualRows ) Asserts that $columnKey in $actualRows exactly contains $expectedValues.
countContent ( integer $contentId = null ) : integer Counts the number of content objects.
countContentFields ( integer $contentId = null ) : integer Counts the number of fields.
countContentNames ( integer $contentId = null ) : integer Counts the number of content names.
countContentRelations ( integer $fromId = null, integer $toId = null ) : integer Counts the number of relations in the database.
countContentVersions ( integer $contentId = null ) : integer Counts the number of versions.
getContentFixture ( ) : eZ\Publish\SPI\Persistence\Content Returns a Content fixture.
getCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\CreateStruct Returns a Content fixture.
getDatabaseGateway ( ) : DoctrineDatabase Returns a ready to test DoctrineDatabase gateway.
getFieldFixture ( ) : eZ\Publish\SPI\Persistence\Content\Field Returns a Field fixture.
getMetadataUpdateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\MetadataUpdateStruct Returns a MetadataUpdateStruct fixture.
getOtherLanguageFieldFixture ( ) : eZ\Publish\SPI\Persistence\Content\Field Returns a Field fixture in a different language.
getRelationCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct DoctrineDatabaseTest::getRelationCreateStructFixture().
getStorageValueFixture ( ) : StorageFieldValue Returns a StorageFieldValue fixture.
getUpdateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\UpdateStruct Returns an UpdateStruct fixture.
getVersionFixture ( ) : eZ\Publish\SPI\Persistence\Content\VersionInfo Returns a Version fixture.
insertRelationFixture ( ) Inserts the relation database fixture from relation_data.php.
storeFixture ( string $file, mixed $fixture ) Stores $fixture in $file to be required as a fixture.

메소드 상세

assertValuesInRows() 보호된 메소드

Asserts that $columnKey in $actualRows exactly contains $expectedValues.
protected assertValuesInRows ( string $columnKey, array $expectedValues, array $actualRows )
$columnKey string
$expectedValues array
$actualRows array

countContent() 보호된 메소드

Counts the number of content objects.
protected countContent ( integer $contentId = null ) : integer
$contentId integer
리턴 integer

countContentFields() 보호된 메소드

Counts the number of fields.
protected countContentFields ( integer $contentId = null ) : integer
$contentId integer
리턴 integer

countContentNames() 보호된 메소드

Counts the number of content names.
protected countContentNames ( integer $contentId = null ) : integer
$contentId integer
리턴 integer

countContentRelations() 보호된 메소드

Counts the number of relations in the database.
protected countContentRelations ( integer $fromId = null, integer $toId = null ) : integer
$fromId integer
$toId integer
리턴 integer

countContentVersions() 보호된 메소드

Counts the number of versions.
protected countContentVersions ( integer $contentId = null ) : integer
$contentId integer
리턴 integer

getContentFixture() 보호된 메소드

Returns a Content fixture.
protected getContentFixture ( ) : eZ\Publish\SPI\Persistence\Content
리턴 eZ\Publish\SPI\Persistence\Content

getCreateStructFixture() 보호된 메소드

Returns a Content fixture.
protected getCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\CreateStruct
리턴 eZ\Publish\SPI\Persistence\Content\CreateStruct

getDatabaseGateway() 보호된 메소드

Returns a ready to test DoctrineDatabase gateway.
protected getDatabaseGateway ( ) : DoctrineDatabase
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Gateway\DoctrineDatabase

getFieldFixture() 보호된 메소드

Returns a Field fixture.
protected getFieldFixture ( ) : eZ\Publish\SPI\Persistence\Content\Field
리턴 eZ\Publish\SPI\Persistence\Content\Field

getMetadataUpdateStructFixture() 보호된 메소드

Returns a MetadataUpdateStruct fixture.
protected getMetadataUpdateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\MetadataUpdateStruct
리턴 eZ\Publish\SPI\Persistence\Content\MetadataUpdateStruct

getOtherLanguageFieldFixture() 보호된 메소드

Returns a Field fixture in a different language.
protected getOtherLanguageFieldFixture ( ) : eZ\Publish\SPI\Persistence\Content\Field
리턴 eZ\Publish\SPI\Persistence\Content\Field

getRelationCreateStructFixture() 보호된 메소드

DoctrineDatabaseTest::getRelationCreateStructFixture().
protected getRelationCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct
리턴 eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct

getStorageValueFixture() 보호된 메소드

Returns a StorageFieldValue fixture.
protected getStorageValueFixture ( ) : StorageFieldValue
리턴 eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue

getUpdateStructFixture() 보호된 메소드

Returns an UpdateStruct fixture.
protected getUpdateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\UpdateStruct
리턴 eZ\Publish\SPI\Persistence\Content\UpdateStruct

getVersionFixture() 보호된 메소드

Returns a Version fixture.
protected getVersionFixture ( ) : eZ\Publish\SPI\Persistence\Content\VersionInfo
리턴 eZ\Publish\SPI\Persistence\Content\VersionInfo

insertRelationFixture() 보호된 메소드

Inserts the relation database fixture from relation_data.php.
protected insertRelationFixture ( )

storeFixture() 보호된 메소드

Stores $fixture in $file to be required as a fixture.
protected storeFixture ( string $file, mixed $fixture )
$file string
$fixture mixed

testCreateFixtureForMapperExtractContentFromRows() 공개 메소드

testCreateFixtureForMapperExtractContentFromRowsMultipleVersions() 공개 메소드

testCtor() 공개 메소드

public testCtor ( )

testDeleteContent() 공개 메소드

public testDeleteContent ( )

testDeleteField() 공개 메소드

public testDeleteField ( )

testDeleteFields() 공개 메소드

public testDeleteFields ( )

testDeleteFieldsWithSecondArgument() 공개 메소드

testDeleteNames() 공개 메소드

public testDeleteNames ( )

testDeleteNamesWithSecondArgument() 공개 메소드

testDeleteRelation() 공개 메소드

public testDeleteRelation ( )

testDeleteRelationWithCompositeBitmask() 공개 메소드

testDeleteRelationsFrom() 공개 메소드

testDeleteRelationsTo() 공개 메소드

testDeleteRelationsWithSecondArgument() 공개 메소드

testDeleteVersions() 공개 메소드

public testDeleteVersions ( )

testDeleteVersionsWithSecondArgument() 공개 메소드

testGetAllLocationIds() 공개 메소드

testGetFieldIdsByType() 공개 메소드

testGetFieldIdsByTypeWithSecondArgument() 공개 메소드

testGetLastVersionNumber() 공개 메소드

*

testInsertContentObject() 공개 메소드

testInsertNewAlwaysAvailableField() 공개 메소드

testInsertNewField() 공개 메소드

public testInsertNewField ( )

testInsertRelation() 공개 메소드

public testInsertRelation ( )

testInsertVersion() 공개 메소드

public testInsertVersion ( )

testListVersionNumbers() 공개 메소드

testListVersions() 공개 메소드

public testListVersions ( )

testListVersionsForUser() 공개 메소드

testLoadNonExistentTranslation() 공개 메소드

testLoadRelations() 공개 메소드

public testLoadRelations ( )

testLoadRelationsByType() 공개 메소드

testLoadRelationsByVersion() 공개 메소드

testLoadRelationsNoResult() 공개 메소드

testLoadReverseRelations() 공개 메소드

testLoadReverseRelationsWithType() 공개 메소드

testLoadVersionInfo() 공개 메소드

public testLoadVersionInfo ( )

testLoadWithAllTranslations() 공개 메소드

testLoadWithSingleTranslation() 공개 메소드

testSetName() 공개 메소드

public testSetName ( )

testSetStatus() 공개 메소드

public testSetStatus ( )

testSetStatusPublished() 공개 메소드

testSetStatusUnknownVersion() 공개 메소드

testUpdateAlwaysAvailableFlagAdd() 공개 메소드

Test for the updateAlwaysAvailableFlag() method.

testUpdateAlwaysAvailableFlagRemove() 공개 메소드

Test for the updateAlwaysAvailableFlag() method.

testUpdateContent() 공개 메소드

public testUpdateContent ( )

testUpdateContentAddAlwaysAvailableFlagMultilingual() 공개 메소드

Test for the updateAlwaysAvailableFlag() method.

testUpdateContentRemoveAlwaysAvailableFlagMultilingual() 공개 메소드

Test for the updateAlwaysAvailableFlag() method.

testUpdateField() 공개 메소드

public testUpdateField ( )

testUpdateNonTranslatableField() 공개 메소드

testUpdateVersion() 공개 메소드

public testUpdateVersion ( )

프로퍼티 상세

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

Database gateway to test.
protected DoctrineDatabase,eZ\Publish\Core\Persistence\Legacy\Content\Gateway $databaseGateway
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Gateway\DoctrineDatabase