PHP Class eZ\Publish\Core\MVC\Symfony\Templating\Tests\Twig\Extension\ContentExtensionTest

Tests ContentExtension in context of site with "fre-FR, eng-US" configured as languages.
Inheritance: extends FileSystemTwigIntegrationTestCase
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getExtensions ( )
getFixturesDir ( )

Protected Methods

Method Description
getContent ( string $contentTypeIdentifier, array $fieldsData, array $namesData = [] ) : Content Creates content with initial/main language being fre-FR.
getContentTypeServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject
getField ( $isEmpty )
getRepositoryMock ( ) : PHPUnit_Framework_MockObject_MockObject

Private Methods

Method Description
getConfigResolverMock ( )

Method Details

getContent() protected method

Creates content with initial/main language being fre-FR.
protected getContent ( string $contentTypeIdentifier, array $fieldsData, array $namesData = [] ) : Content
$contentTypeIdentifier string
$fieldsData array
$namesData array
return eZ\Publish\Core\Repository\Values\Content\Content

getContentTypeServiceMock() protected method

protected getContentTypeServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject
return PHPUnit_Framework_MockObject_MockObject

getExtensions() public method

public getExtensions ( )

getField() protected method

protected getField ( $isEmpty )

getFixturesDir() public method

public getFixturesDir ( )

getRepositoryMock() protected method

protected getRepositoryMock ( ) : PHPUnit_Framework_MockObject_MockObject
return PHPUnit_Framework_MockObject_MockObject