164 : void
165 {
166 $xlstProcess = $this->getMockBuilder(ilCertificateXlstProcess::class)
167 ->getMock();
168
169 $xlstProcess
170 ->expects($this->once())
171 ->method('process');
172
173 $content = 'page-width="11in" page-height="8.5in" <fo:region-body margin="1cm 2cm 3cm 4cm"/>';
174
176 $formFields = $parser->fetchDefaultFormFields($content);
177
178 $this->assertSame(
179 [
180 'pageformat' => 'letterlandscape',
181 'pagewidth' => '11in',
182 'pageheight' => '8.5in',
183 'margin_body_top' => '1cm',
184 'margin_body_right' => '2cm',
185 'margin_body_bottom' => '3cm',
186 'margin_body_left' => '4cm',
187 'certificate_text' => ''
188 ],
189 $formFields
190 );
191 }