added username parameter to export command (#3638)

This commit is contained in:
Kevin Papst
2022-11-19 18:38:13 +01:00
committed by GitHub
parent e413325337
commit 4f698f73dc
2 changed files with 16 additions and 10 deletions

View File

@@ -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);