PHP Class eZ\Publish\Core\FieldType\Tests\RichText\RichTextStorageTest

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

Protected Properties

Property Type Description
$gatewayMock eZ\Publish\Core\FieldType\RichText\RichTextStorage\Gateway | PHPUnit_Framework_MockObject_MockObject
$loggerMock Psr\Log\LoggerInterface | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
providerForTestGetFieldData ( )
providerForTestStoreFieldData ( )
providerForTestStoreFieldDataThrowsNotFoundException ( )
testDeleteFieldData ( )
testGetFieldData ( $xmlString, $updatedXmlString, $linkIds, $linkUrls )
testStoreFieldData ( $xmlString, $updatedXmlString, $linkUrls, $linkIds, $insertLinks, $remoteIds, $contentIds, $isUpdated )
testStoreFieldDataThrowsNotFoundException ( $xmlString, $linkUrls, $linkIds, $insertLinks, $remoteIds, $contentIds )

Protected Methods

Method Description
getContext ( ) : array
getGatewayMock ( ) : Gateway | PHPUnit_Framework_MockObject_MockObject
getLoggerMock ( ) : Psr\Log\LoggerInterface | PHPUnit_Framework_MockObject_MockObject
getPartlyMockedStorage ( array $methods ) : RichTextStorage | PHPUnit_Framework_MockObject_MockObject

Method Details

getContext() protected method

protected getContext ( ) : array
return array

getGatewayMock() protected method

protected getGatewayMock ( ) : Gateway | PHPUnit_Framework_MockObject_MockObject
return eZ\Publish\Core\FieldType\RichText\RichTextStorage\Gateway | PHPUnit_Framework_MockObject_MockObject

getLoggerMock() protected method

protected getLoggerMock ( ) : Psr\Log\LoggerInterface | PHPUnit_Framework_MockObject_MockObject
return Psr\Log\LoggerInterface | PHPUnit_Framework_MockObject_MockObject

getPartlyMockedStorage() protected method

protected getPartlyMockedStorage ( array $methods ) : RichTextStorage | PHPUnit_Framework_MockObject_MockObject
$methods array
return eZ\Publish\Core\FieldType\RichText\RichTextStorage | PHPUnit_Framework_MockObject_MockObject

providerForTestGetFieldData() public method

providerForTestStoreFieldData() public method

providerForTestStoreFieldDataThrowsNotFoundException() public method

testDeleteFieldData() public method

public testDeleteFieldData ( )

testGetFieldData() public method

public testGetFieldData ( $xmlString, $updatedXmlString, $linkIds, $linkUrls )

testStoreFieldData() public method

public testStoreFieldData ( $xmlString, $updatedXmlString, $linkUrls, $linkIds, $insertLinks, $remoteIds, $contentIds, $isUpdated )

testStoreFieldDataThrowsNotFoundException() public method

public testStoreFieldDataThrowsNotFoundException ( $xmlString, $linkUrls, $linkIds, $insertLinks, $remoteIds, $contentIds )

Property Details

$gatewayMock protected_oe property

protected Gateway,eZ\Publish\Core\FieldType\RichText\RichTextStorage|PHPUnit_Framework_MockObject_MockObject $gatewayMock
return eZ\Publish\Core\FieldType\RichText\RichTextStorage\Gateway | PHPUnit_Framework_MockObject_MockObject

$loggerMock protected_oe property

protected LoggerInterface,Psr\Log|PHPUnit_Framework_MockObject_MockObject $loggerMock
return Psr\Log\LoggerInterface | PHPUnit_Framework_MockObject_MockObject