Skip to content
Snippets Groups Projects
Verified Commit 6d5bddf9 authored by Damien's avatar Damien
Browse files

FEAT #9104 Export Unit tests 2

parent 5926030f
Branches
Tags
No related merge requests found
...@@ -40,7 +40,7 @@ class ExportControllerTest extends TestCase ...@@ -40,7 +40,7 @@ class ExportControllerTest extends TestCase
$aArgs = [ $aArgs = [
"resources" => $GLOBALS['resources'], "resources" => $GLOBALS['resources'],
"delimiter" => ';', "delimiter" => ';',
"format" => 'csv', "format" => 'pdf',
"data" => [ "data" => [
[ [
"value" => "subject", "value" => "subject",
...@@ -96,7 +96,6 @@ class ExportControllerTest extends TestCase ...@@ -96,7 +96,6 @@ class ExportControllerTest extends TestCase
]; ];
//PDF //PDF
$aArgs['format'] = 'pdf';
$fullRequest = \httpRequestCustom::addContentInBody($aArgs, $request); $fullRequest = \httpRequestCustom::addContentInBody($aArgs, $request);
$response = $ExportController->updateExport($fullRequest, new \Slim\Http\Response(), ['userId' => 19, 'groupId' => 2, 'basketId' => 10]); $response = $ExportController->updateExport($fullRequest, new \Slim\Http\Response(), ['userId' => 19, 'groupId' => 2, 'basketId' => 10]);
...@@ -118,6 +117,7 @@ class ExportControllerTest extends TestCase ...@@ -118,6 +117,7 @@ class ExportControllerTest extends TestCase
$this->assertSame($aArgs['data'], $templateData); $this->assertSame($aArgs['data'], $templateData);
//CSV //CSV
$aArgs['format'] = 'csv';
$fullRequest = \httpRequestCustom::addContentInBody($aArgs, $request); $fullRequest = \httpRequestCustom::addContentInBody($aArgs, $request);
$response = $ExportController->updateExport($fullRequest, new \Slim\Http\Response(), ['userId' => 19, 'groupId' => 2, 'basketId' => 10]); $response = $ExportController->updateExport($fullRequest, new \Slim\Http\Response(), ['userId' => 19, 'groupId' => 2, 'basketId' => 10]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment