From 6d5bddf97607c6f4ff6c4c4721e28b88d0455478 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Wed, 13 Feb 2019 18:12:07 +0100
Subject: [PATCH] FEAT #9104 Export Unit tests 2

---
 test/unitTests/app/resource/ExportControllerTest.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/unitTests/app/resource/ExportControllerTest.php b/test/unitTests/app/resource/ExportControllerTest.php
index e750ce568ca..441c1932b71 100644
--- a/test/unitTests/app/resource/ExportControllerTest.php
+++ b/test/unitTests/app/resource/ExportControllerTest.php
@@ -40,7 +40,7 @@ class ExportControllerTest extends TestCase
         $aArgs = [
             "resources" => $GLOBALS['resources'],
             "delimiter" => ';',
-            "format"    => 'csv',
+            "format"    => 'pdf',
             "data" => [
                 [
                     "value" => "subject",
@@ -96,7 +96,6 @@ class ExportControllerTest extends TestCase
         ];
 
         //PDF
-        $aArgs['format'] = 'pdf';
         $fullRequest = \httpRequestCustom::addContentInBody($aArgs, $request);
 
         $response     = $ExportController->updateExport($fullRequest, new \Slim\Http\Response(), ['userId' => 19, 'groupId' => 2, 'basketId' => 10]);
@@ -118,6 +117,7 @@ class ExportControllerTest extends TestCase
         $this->assertSame($aArgs['data'], $templateData);
 
         //CSV
+        $aArgs['format'] = 'csv';
         $fullRequest = \httpRequestCustom::addContentInBody($aArgs, $request);
 
         $response     = $ExportController->updateExport($fullRequest, new \Slim\Http\Response(), ['userId' => 19, 'groupId' => 2, 'basketId' => 10]);
-- 
GitLab