improves attachment test to better mimic js client behavior
authorPhilipp Schüle <p.schuele@metaways.de>
Tue, 15 Apr 2014 19:23:18 +0000 (21:23 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Thu, 4 Sep 2014 09:25:29 +0000 (11:25 +0200)
Change-Id: I343f44a9c73a7b10a5c878fafec8bc980ccdb76c
Reviewed-on: http://gerrit.tine20.com/customers/533
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tests/tine20/Crm/JsonTest.php

index abdd21b..e489a8c 100644 (file)
@@ -576,7 +576,7 @@ class Crm_JsonTest extends Crm_AbstractTest
         $tempFile = $tempFileBackend->createTempFile(dirname(dirname(__FILE__)) . '/Filemanager/files/test.txt');
         
         $lead = $this->_getLead()->toArray();
-        $lead['attachments'] = array(array('tempFile' => array('id' => $tempFile->getId())));
+        $lead['attachments'] = array(array('tempFile' => $tempFile->toArray()));
         
         $savedLead = $this->_instance->saveLead($lead);
         // add path to files to remove