diff --git a/Core/FieldHandler/EzBinaryFile.php b/Core/FieldHandler/EzBinaryFile.php index 8c9e4553..f6645cf4 100644 --- a/Core/FieldHandler/EzBinaryFile.php +++ b/Core/FieldHandler/EzBinaryFile.php @@ -54,7 +54,7 @@ public function hashToFieldValue($fieldValue, array $context = array()) * @param array $context * @return array * - * @todo check out if this works in ezplatform + * @todo check if this works in ezplatform */ public function fieldValueToHash($fieldValue, array $context = array()) { diff --git a/Resources/doc/DSL/Contents.yml b/Resources/doc/DSL/Contents.yml index 12d9b3fc..568dbd30 100644 --- a/Resources/doc/DSL/Contents.yml +++ b/Resources/doc/DSL/Contents.yml @@ -19,6 +19,7 @@ alt_text: xyz # Optional, only used for images filename: abc # Optional, taken from the actual file if not specified mime_type: def # Optional. For ezbinaryfile and ezmedia only. If not specified, the actual file is analyzed using the php function mime_content_type() + # NB: this seems to work only with eZPublish < 5.4 / 2014.11; see bug https://github.com/kaliop-uk/ezmigrationbundle/issues/147 has_controller: false # Optional. For ezmedia only autoplay: false # Optional. For ezmedia only loop: false # Optional. For ezmedia only diff --git a/Tests/dsl/good/UnitTestOK004_content.yml b/Tests/dsl/good/UnitTestOK004_content.yml index b90fe9d0..baab8eac 100644 --- a/Tests/dsl/good/UnitTestOK004_content.yml +++ b/Tests/dsl/good/UnitTestOK004_content.yml @@ -317,7 +317,7 @@ - ezbinaryfile: path: emptyfile.txt filename: lol2.txt - mime_type: something + mime_type: something/else - ezmedia: path: small.flv filename: lol3.flv @@ -340,6 +340,18 @@ destinationContentId: 'reference:kmb_test_004_1' - ezobjectrelationlist: destinationContentIds: [ 'reference:kmb_test_004_1', 'reference:kmb_test_004_2' ] + references: + - + identifier: kmb_test_004_10_mimetype + attribute: attributes.ezbinaryfile.mimeType + +# Currently fails... See: https://github.com/kaliop-uk/ezmigrationbundle/issues/147 +#- +# type: assert +# target: reference +# identifier: reference:kmb_test_004_10_mimetype +# test: +# equals: something/else - type: content