From 2c89c2b45c70a54ed9bf74eb6a958a7b6b4a4ed2 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Wed, 21 Mar 2012 12:57:38 +0100 Subject: [PATCH] Add consistency to tests --- lib/unitTest/record/adapterTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/unitTest/record/adapterTest.php b/lib/unitTest/record/adapterTest.php index 0b1ae4548b..cf2558dfb8 100644 --- a/lib/unitTest/record/adapterTest.php +++ b/lib/unitTest/record/adapterTest.php @@ -30,6 +30,18 @@ class record_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract $metadatas = $system_file->extract_metadatas($databox->get_meta_structure()); static::$record_23->set_metadatas($metadatas['metadatas']); + + /** + * Reset thumbtitle in order to have consistent tests (testGet_title) + */ + foreach(static::$record_1->get_databox()->get_meta_structure() as $databox_field) + { + + /* @var $databox_field \databox_field */ + $databox_field->set_thumbtitle(false)->save(); + } + + $system_file = new system_file(__DIR__ . '/../testfiles/cestlafete.jpg'); }