PHP Class eZ\Publish\Core\FieldType\Tests\Page\PageServiceTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$blockDefinition array
$contentService PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\ContentService
$pageService eZ\Publish\Core\FieldType\Page\PageService
$storageGateway PHPUnit_Framework_MockObject_MockObject
$zoneDefinition array

Public Methods

Method Description
getLayoutTemplateProvider ( )
hasBlockDefinitionProvider ( )
hasZoneLayoutProvider ( )
testGetArchivedBlockItems ( )
testGetAvailableZoneLayouts ( )
testGetBlockDefinition ( )
testGetBlockDefinitionByIdentifier ( )
testGetBlockDefinitionByIdentifierInvalidBlock ( )
testGetLastValidBlockItem ( )
testGetLayoutTemplate ( $zoneLayout, $expectedTemplate )
testGetLayoutTemplateInvalidLayout ( )
testGetStorageGateway ( )
testGetValidBlockItems ( )
testGetValidBlockItemsNoGateway ( )
testGetWaitingBlockItems ( )
testGetZoneDefinition ( )
testGetZoneDefinitionByLayout ( )
testGetZoneDefinitionByLayoutInvalidLayout ( )
testHasBlockDefinition ( string $blockIdentifier, boolean $expectedResult )
testHasZoneLayout ( string $layout, boolean $expectedResult )
testLoadBlock ( )

Protected Methods

Method Description
buildBlock ( ) : Block
getBlockDefinition ( ) : array Returns block definition to test with.
getZoneDefinition ( ) : array Returns zone definition to test with.
setUp ( )

Method Details

buildBlock() protected method

protected buildBlock ( ) : Block
return eZ\Publish\Core\FieldType\Page\Parts\Block

getBlockDefinition() protected method

Returns block definition to test with.
protected getBlockDefinition ( ) : array
return array

getLayoutTemplateProvider() public method

getZoneDefinition() protected method

Returns zone definition to test with.
protected getZoneDefinition ( ) : array
return array

hasBlockDefinitionProvider() public method

hasZoneLayoutProvider() public method

setUp() protected method

protected setUp ( )

testGetArchivedBlockItems() public method

testGetAvailableZoneLayouts() public method

testGetBlockDefinition() public method

testGetBlockDefinitionByIdentifier() public method

testGetBlockDefinitionByIdentifierInvalidBlock() public method

testGetLastValidBlockItem() public method

testGetLayoutTemplate() public method

public testGetLayoutTemplate ( $zoneLayout, $expectedTemplate )

testGetLayoutTemplateInvalidLayout() public method

testGetStorageGateway() public method

testGetValidBlockItems() public method

testGetValidBlockItemsNoGateway() public method

testGetWaitingBlockItems() public method

testGetZoneDefinition() public method

testGetZoneDefinitionByLayout() public method

testGetZoneDefinitionByLayoutInvalidLayout() public method

testHasBlockDefinition() public method

public testHasBlockDefinition ( string $blockIdentifier, boolean $expectedResult )
$blockIdentifier string
$expectedResult boolean

testHasZoneLayout() public method

public testHasZoneLayout ( string $layout, boolean $expectedResult )
$layout string
$expectedResult boolean

testLoadBlock() public method

public testLoadBlock ( )

Property Details

$blockDefinition protected_oe property

protected array $blockDefinition
return array

$contentService protected_oe property

protected PHPUnit_Framework_MockObject_MockObject|ContentService,eZ\Publish\API\Repository $contentService
return PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\ContentService

$pageService protected_oe property

protected PageService,eZ\Publish\Core\FieldType\Page $pageService
return eZ\Publish\Core\FieldType\Page\PageService

$storageGateway protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $storageGateway
return PHPUnit_Framework_MockObject_MockObject

$zoneDefinition protected_oe property

protected array $zoneDefinition
return array