From c200e8fdfd9a8878525a06345f00d46de9d53598 Mon Sep 17 00:00:00 2001 From: Tim Nagel Date: Thu, 3 Jul 2014 19:59:33 +1000 Subject: [PATCH] Add tests for attachment type --- .travis.yml | 2 ++ Tests/Functional/app/Basic/config.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d6ba18a..a884d86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,8 @@ php: - 5.5 before_script: + - sudo /usr/share/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/2.0.0 + - sudo service elasticsearch restart - echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - composer install --dev --prefer-source diff --git a/Tests/Functional/app/Basic/config.yml b/Tests/Functional/app/Basic/config.yml index cdc6c53..beb0ded 100644 --- a/Tests/Functional/app/Basic/config.yml +++ b/Tests/Functional/app/Basic/config.yml @@ -49,7 +49,7 @@ fos_elastica: mapping: analyzer: english type: string - mappings: + properties: field1: ~ field2: type: integer @@ -68,6 +68,8 @@ fos_elastica: type: "object" properties: date: { boost: 5 } + agreement: + type: "attachment" lastlogin: { type: date, format: basic_date_time } birthday: { type: date, format: "yyyy-MM-dd" } _parent: