@@ 76-84 (lines=9) @@ | ||
73 | $this->sut->write($reportData, $reportConfig); |
|
74 | } |
|
75 | ||
76 | public function testHorizontalSinglelevelReport() |
|
77 | { |
|
78 | $reportData = json_decode(file_get_contents('tests/metadata/data/testSinglelevelReport.json'), true); |
|
79 | ||
80 | $this->templateRepo->setMetadata('horizontal-singlelevel.xlsx', ['LEVEL1'=> RendererInterface::ORIENTATION_HORIZONTAL]); |
|
81 | ||
82 | $reportConfig = new ReportConfig('horizontal-singlelevel.xlsx', 'horizontal-singlelevel-output.xlsx'); |
|
83 | $this->sut->write($reportData, $reportConfig); |
|
84 | } |
|
85 | ||
86 | public function testHorizontalMultilevelReport() |
|
87 | { |
|
@@ 86-94 (lines=9) @@ | ||
83 | $this->sut->write($reportData, $reportConfig); |
|
84 | } |
|
85 | ||
86 | public function testHorizontalMultilevelReport() |
|
87 | { |
|
88 | $reportData = json_decode(file_get_contents('tests/metadata/data/testMultilevelReport.json'), true); |
|
89 | ||
90 | $this->templateRepo->setMetadata('horizontal-multilevel.xlsx', ['LEVEL2'=> RendererInterface::ORIENTATION_HORIZONTAL]); |
|
91 | ||
92 | $reportConfig = new ReportConfig('horizontal-multilevel.xlsx', 'horizontal-multilevel-output.xlsx'); |
|
93 | $this->sut->write($reportData, $reportConfig); |
|
94 | } |
|
95 | ||
96 | public function testFinalReport() |
|
97 | { |
|
@@ 96-104 (lines=9) @@ | ||
93 | $this->sut->write($reportData, $reportConfig); |
|
94 | } |
|
95 | ||
96 | public function testFinalReport() |
|
97 | { |
|
98 | $reportData = json_decode(file_get_contents('tests/metadata/data/commission.json'), true); |
|
99 | ||
100 | $this->templateRepo->setMetadata('commission.xlsx', ['SERVICEPARTNER'=> RendererInterface::ORIENTATION_HORIZONTAL]); |
|
101 | ||
102 | $reportConfig = new ReportConfig('commission.xlsx', 'commission-output.xlsx'); |
|
103 | $this->sut->write($reportData, $reportConfig); |
|
104 | } |
|
105 | ||
106 | } |
|
107 |