Verified Commit 6d5bddf9 authored by Damien's avatar Damien

FEAT #9104 Export Unit tests 2

parent 5926030f
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment