Skip to content

Commit

Permalink
fix wrong file path in test use kernel.project_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kayaArvatis committed Jan 5, 2024
1 parent 76299db commit 8a4370f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Helper/CommandTestCaseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ private function addCreatedExportFile(string $file): void

private function getFilePath(string $fileName): string
{
return Shopware()->DocPath() . $fileName;
return sprintf('%s/%s', $this->getContainer()->getParameter('kernel.project_dir'), $fileName);
}
}

0 comments on commit 8a4370f

Please sign in to comment.