6 declare(strict_types=1);
14 use PHPUnit\Framework\TestCase;
26 private $exportFilePath;
31 $this->exportFilePath = implode(DIRECTORY_SEPARATOR, [
34 uniqid(
'test-export_',
false) .
'.csv' 40 [
'destination' => $this->exportFilePath]
46 unlink($this->exportFilePath);
58 $this->exporter->setParameters([]);
59 $this->exporter->export();
61 $exportFullLines = file(
62 implode(DIRECTORY_SEPARATOR, [
__DIR__,
'_files',
'export_full.csv']),
66 foreach ($exportFullLines as $line) {
67 $this->assertContains(
83 $this->exporter->setParameters([
88 $this->exporter->export();
105 $this->exporter->setParameters([
110 $this->exporter->export();
127 $this->exporter->setParameters([
129 'source_code' =>
'eu' 132 $this->exporter->export();
149 $this->exporter->setParameters([
158 $this->exporter->export();
164 'export_filtered_without_status_column.csv'
const FILTER_ELEMENT_SKIP
defined('TESTS_BP')||define('TESTS_BP' __DIR__
testExportFilteredWithoutStatusColumn()
testExportWithoutAnyFiltering()
testExportWithSkuFilterByLikeQuery()
testExportWithSourceFilter()
const FILTER_ELEMENT_GROUP
testExportWithSkuFilter()
static getObjectManager()