Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix committed Sep 6, 2023
1 parent 09fa81f commit 8b4f59c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/Alchemy/Tests/Phrasea/Controller/Prod/ExportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,21 +113,20 @@ public function testExportFtpNoDocs()
*/
public function testExportFtpBadRequest($params)
{
self::$DI['client']->request('POST', '/prod/export/ftp/', $params);
$randomValue = $this->setSessionFormToken('prodExportFTP');
self::$DI['client']->request('POST', '/prod/export/ftp/', array_merge($params, ['prodExportFTP_token' => $randomValue]));

$this->assertBadResponse(self::$DI['client']->getResponse());
}

public function getMissingArguments()
{
$randomValue = $this->setSessionFormToken('prodExportFTP');

return [
[['prodExportFTP_token' => $randomValue]],
[['address' => '', 'prodExportFTP_token' => $randomValue]],
[['address' => '', 'login' => '', 'prodExportFTP_token' => $randomValue]],
[['address' => '', 'login' => '', 'dest_folder' => '', 'prodExportFTP_token' => $randomValue]],
[['address' => '', 'login' => '', 'dest_folder' => '', 'prefix_folder' => '', 'prodExportFTP_token' => $randomValue]],
[[]],
[['address' => '']],
[['address' => '', 'login' => '']],
[['address' => '', 'login' => '', 'dest_folder' => '']],
[['address' => '', 'login' => '', 'dest_folder' => '', 'prefix_folder' => '']],
];
}

Expand Down

0 comments on commit 8b4f59c

Please sign in to comment.