PHP Class eZ\Publish\Core\Repository\Tests\Service\Integration\LocationBase

Inheritance: extends Base
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
testCopySubtree ( ) Test copying a subtree.
testCopySubtreeThrowsInvalidArgumentException ( ) Test copying a subtree throwing InvalidArgumentException.
testCreateLocation ( ) Test creating a location.
testCreateLocationThrowsInvalidArgumentExceptionExistingRemoteId ( ) Test creating a location throwing InvalidArgumentException.
testCreateLocationThrowsInvalidArgumentExceptionLocationExistsBelowParent ( ) Test creating a location throwing InvalidArgumentException.
testCreateLocationThrowsInvalidArgumentExceptionParentIsASubLocation ( ) Test creating a location throwing InvalidArgumentException.
testDeleteLocation ( ) Test deleting a location.
testHideUnhideLocation ( ) Test hiding & unhiding a location.
testIsPropertySet ( ) Test if property exists.
testLoadLocation ( ) Test loading a location.
testLoadLocationByRemoteId ( ) Test loading location by remote ID.
testLoadLocationByRemoteIdThrowsNotFoundException ( ) Test loading location by remote ID.
testLoadLocationChildren ( ) Test loading location children.
testLoadLocationThrowsNotFoundException ( ) Test loading a location throwing NotFoundException.
testLoadLocations ( ) Test loading locations for content.
testLoadLocationsThrowsBadStateException ( ) Test loading locations for content throwing BadStateException.
testLoadLocationsWithRootLocation ( ) Test loading locations for content with root location specified.
testMissingProperty ( ) Test retrieving missing property.
testMoveSubtree ( ) Test moving a subtree.
testNewClass ( ) Test a new class and default values on properties.
testNewLocationCreateStruct ( ) Test creating new LocationCreateStruct.
testNewLocationUpdateStruct ( ) Test creating new LocationUpdateStruct.
testReadOnlyProperty ( ) Test setting read only property.
testSwapLocation ( ) Test swapping location.
testUnsetProperty ( ) Test unsetting a property.
testUpdateLocation ( ) Test updating location.
testUpdateLocationThrowsInvalidArgumentException ( ) Test updating location throwing InvalidArgumentException.

Protected Methods

Method Description
addNewMainLocation ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, integer $parentLocationId ) : mixed
createContentDraft ( )
createTestContentLocation ( integer $parentLocationId ) : eZ\Publish\API\Repository\Values\Content\Content

Method Details

addNewMainLocation() protected method

protected addNewMainLocation ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, integer $parentLocationId ) : mixed
$contentInfo eZ\Publish\API\Repository\Values\Content\ContentInfo
$parentLocationId integer
return mixed

createContentDraft() protected method

protected createContentDraft ( )

createTestContentLocation() protected method

protected createTestContentLocation ( integer $parentLocationId ) : eZ\Publish\API\Repository\Values\Content\Content
$parentLocationId integer
return eZ\Publish\API\Repository\Values\Content\Content

testCopySubtree() public method

Test copying a subtree.
public testCopySubtree ( )

testCopySubtreeThrowsInvalidArgumentException() public method

Test copying a subtree throwing InvalidArgumentException.

testCreateLocation() public method

Test creating a location.
public testCreateLocation ( )

testCreateLocationThrowsInvalidArgumentExceptionExistingRemoteId() public method

Test creating a location throwing InvalidArgumentException.

testCreateLocationThrowsInvalidArgumentExceptionLocationExistsBelowParent() public method

Test creating a location throwing InvalidArgumentException.

testCreateLocationThrowsInvalidArgumentExceptionParentIsASubLocation() public method

Test creating a location throwing InvalidArgumentException.

testDeleteLocation() public method

Test deleting a location.
public testDeleteLocation ( )

testHideUnhideLocation() public method

Test hiding & unhiding a location.

testIsPropertySet() public method

Test if property exists.
public testIsPropertySet ( )

testLoadLocation() public method

Test loading a location.
public testLoadLocation ( )

testLoadLocationByRemoteId() public method

Test loading location by remote ID.

testLoadLocationByRemoteIdThrowsNotFoundException() public method

Test loading location by remote ID.

testLoadLocationChildren() public method

Test loading location children.

testLoadLocationThrowsNotFoundException() public method

Test loading a location throwing NotFoundException.

testLoadLocations() public method

Test loading locations for content.
public testLoadLocations ( )

testLoadLocationsThrowsBadStateException() public method

Test loading locations for content throwing BadStateException.

testLoadLocationsWithRootLocation() public method

Test loading locations for content with root location specified.

testMissingProperty() public method

Test retrieving missing property.
public testMissingProperty ( )

testMoveSubtree() public method

Test moving a subtree.
public testMoveSubtree ( )

testNewClass() public method

Test a new class and default values on properties.
public testNewClass ( )

testNewLocationCreateStruct() public method

Test creating new LocationCreateStruct.

testNewLocationUpdateStruct() public method

Test creating new LocationUpdateStruct.

testReadOnlyProperty() public method

Test setting read only property.

testSwapLocation() public method

Test swapping location.
public testSwapLocation ( )

testUnsetProperty() public method

Test unsetting a property.
public testUnsetProperty ( )

testUpdateLocation() public method

Test updating location.
public testUpdateLocation ( )

testUpdateLocationThrowsInvalidArgumentException() public method

Test updating location throwing InvalidArgumentException.