PHP Class eZ\Bundle\EzPublishRestBundle\Tests\Functional\ContentTest

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

Public Methods

Method Description
testCopyContent ( $restContentHref ) : string
testCreateContent ( ) : string
testCreateDraftFromCurrentVersion ( string $restContentHref ) : string
testCreateDraftFromVersion ( $restContentHref ) : string
testCreateRelation ( $restContentVersionHref ) : string
testCreateView ( )
testDeleteContent ( $restContentHref )
testDeleteContentVersion ( string $restContentVersionHref )
testLoadContent ( $restContentHref )
testLoadContentVersion ( string $restContentVersionHref )
testLoadContentVersions ( $restContentHref )
testLoadVersionRelation ( $restContentRelationHref )
testLoadVersionRelations ( $restContentVersionHref )
testPublishContent ( $restContentHref ) : string
testRedirectContent ( $restContentHref )
testRedirectCurrentVersion ( $restContentHref )
testRedirectCurrentVersionRelations ( $restContentHref )
testUpdateContentMetadata ( $restContentHref )
testUpdateVersion ( string $restContentVersionHref )

Private Methods

Method Description
loadContent ( string $restContentHref ) : array Returns the Content key from the decoded JSON of $restContentId's contentInfo.

Method Details

testCopyContent() public method

public testCopyContent ( $restContentHref ) : string
return string the copied content href

testCreateContent() public method

public testCreateContent ( ) : string
return string REST content ID

testCreateDraftFromCurrentVersion() public method

public testCreateDraftFromCurrentVersion ( string $restContentHref ) : string
$restContentHref string /content/objects/
return string the ID of the created version (/content/objects//versions/

testCreateDraftFromVersion() public method

public testCreateDraftFromVersion ( $restContentHref ) : string
return string ContentVersion REST ID

testCreateRelation() public method

public testCreateRelation ( $restContentVersionHref ) : string
return string created relation HREF (/content/objects//versions//relations/

testCreateView() public method

public testCreateView ( )

testDeleteContent() public method

public testDeleteContent ( $restContentHref )

testDeleteContentVersion() public method

public testDeleteContentVersion ( string $restContentVersionHref )
$restContentVersionHref string /api/ezp/v2/content/objects//versions>/

testLoadContent() public method

public testLoadContent ( $restContentHref )

testLoadContentVersion() public method

public testLoadContentVersion ( string $restContentVersionHref )
$restContentVersionHref string

testLoadContentVersions() public method

public testLoadContentVersions ( $restContentHref )

testLoadVersionRelation() public method

public testLoadVersionRelation ( $restContentRelationHref )

testLoadVersionRelations() public method

public testLoadVersionRelations ( $restContentVersionHref )

testPublishContent() public method

public testPublishContent ( $restContentHref ) : string
return string REST content ID

testRedirectContent() public method

public testRedirectContent ( $restContentHref )

testRedirectCurrentVersion() public method

public testRedirectCurrentVersion ( $restContentHref )

testRedirectCurrentVersionRelations() public method

public testRedirectCurrentVersionRelations ( $restContentHref )

testUpdateContentMetadata() public method

public testUpdateContentMetadata ( $restContentHref )

testUpdateVersion() public method

public testUpdateVersion ( string $restContentVersionHref )
$restContentVersionHref string /content/objects//versions>/