added username parameter to export command (#3638)
This commit is contained in:
@@ -209,7 +209,7 @@ class ExportCreateCommandTest extends KernelTestCase
|
||||
|
||||
$data = $this->prepareFixtures($start);
|
||||
|
||||
$commandTester = $this->createExport(['--template' => 'csv', '--customer' => [$data[0]->getId()], '--start' => $start->format('Y-m-d'), '--end' => $end->format('Y-m-d')]);
|
||||
$commandTester = $this->createExport(['--template' => 'csv', '--customer' => [$data[0]->getId()], '--start' => $start->format('Y-m-d'), '--end' => $end->format('Y-m-d'), '--username' => UserFixtures::USERNAME_SUPER_ADMIN]);
|
||||
|
||||
$output = $commandTester->getDisplay();
|
||||
$this->assertStringContainsString('Saved export to: ', $output);
|
||||
|
||||
Reference in New Issue
Block a user