diff --git a/src/lib/FieldType/RichText/RichTextStorage.php b/src/lib/FieldType/RichText/RichTextStorage.php index 9d6cc50a..14fe48f0 100644 --- a/src/lib/FieldType/RichText/RichTextStorage.php +++ b/src/lib/FieldType/RichText/RichTextStorage.php @@ -42,7 +42,7 @@ public function __construct(StorageGateway $gateway, LoggerInterface $logger = n /** * @see \Ibexa\Contracts\Core\FieldType\FieldStorage */ - public function storeFieldData(VersionInfo $versionInfo, Field $field, array $context) + public function storeFieldData(VersionInfo $versionInfo, Field $field) { $document = new DOMDocument(); $document->loadXML($field->value->data); @@ -133,7 +133,7 @@ public function storeFieldData(VersionInfo $versionInfo, Field $field, array $co * @param \Ibexa\Contracts\Core\Persistence\Content\Field $field * @param array $context */ - public function getFieldData(VersionInfo $versionInfo, Field $field, array $context) + public function getFieldData(VersionInfo $versionInfo, Field $field) { $document = new DOMDocument(); $document->loadXML($field->value->data); @@ -186,7 +186,7 @@ public function getFieldData(VersionInfo $versionInfo, Field $field, array $cont $field->value->data = $document->saveXML(); } - public function deleteFieldData(VersionInfo $versionInfo, array $fieldIds, array $context) + public function deleteFieldData(VersionInfo $versionInfo, array $fieldIds) { foreach ($fieldIds as $fieldId) { $this->gateway->unlinkUrl($fieldId, $versionInfo->versionNo); @@ -202,8 +202,4 @@ public function hasFieldData() { return true; } - - public function getIndexData(VersionInfo $versionInfo, Field $field, array $context) - { - } } diff --git a/tests/lib/FieldType/RichText/RichTextStorageTest.php b/tests/lib/FieldType/RichText/RichTextStorageTest.php index d157ed0d..04896fa7 100644 --- a/tests/lib/FieldType/RichText/RichTextStorageTest.php +++ b/tests/lib/FieldType/RichText/RichTextStorageTest.php @@ -95,8 +95,7 @@ public function testGetFieldData($xmlString, $updatedXmlString, $linkIds, $linkU $storage = $this->getPartlyMockedStorage($gateway); $storage->getFieldData( $versionInfo, - $field, - $this->getContext() + $field ); self::assertEquals( @@ -238,8 +237,7 @@ public function testStoreFieldData( $storage = $this->getPartlyMockedStorage($gateway); $result = $storage->storeFieldData( $versionInfo, - $field, - $this->getContext() + $field ); self::assertEquals( @@ -345,8 +343,7 @@ public function testStoreFieldDataThrowsNotFoundException( $storage = $this->getPartlyMockedStorage($gateway); $storage->storeFieldData( $versionInfo, - $field, - $this->getContext() + $field ); } @@ -366,8 +363,7 @@ public function testDeleteFieldData(): void $storage->deleteFieldData( $versionInfo, - $fieldIds, - $this->getContext() + $fieldIds ); } @@ -389,14 +385,6 @@ protected function getPartlyMockedStorage(StorageGateway $gateway) ->getMock(); } - /** - * @return array - */ - protected function getContext() - { - return ['context']; - } - /** * @var \Psr\Log\LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */