|
@@ 291-298 (lines=8) @@
|
| 288 |
|
$transformer->transform(new POPO(), ['desc' => []]); |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
public function testFileAddedForAttachmentMapping() |
| 292 |
|
{ |
| 293 |
|
$transformer = $this->getTransformer(); |
| 294 |
|
$document = $transformer->transform(new POPO(), ['file' => ['type' => 'attachment']]); |
| 295 |
|
$data = $document->getData(); |
| 296 |
|
|
| 297 |
|
$this->assertSame(base64_encode(file_get_contents(__DIR__.'/../fixtures/attachment.odt')), $data['file']); |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
public function testFileContentsAddedForAttachmentMapping() |
| 301 |
|
{ |
|
@@ 300-309 (lines=10) @@
|
| 297 |
|
$this->assertSame(base64_encode(file_get_contents(__DIR__.'/../fixtures/attachment.odt')), $data['file']); |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
public function testFileContentsAddedForAttachmentMapping() |
| 301 |
|
{ |
| 302 |
|
$transformer = $this->getTransformer(); |
| 303 |
|
$document = $transformer->transform(new POPO(), ['fileContents' => ['type' => 'attachment']]); |
| 304 |
|
$data = $document->getData(); |
| 305 |
|
|
| 306 |
|
$this->assertSame( |
| 307 |
|
base64_encode(file_get_contents(__DIR__.'/../fixtures/attachment.odt')), $data['fileContents'] |
| 308 |
|
); |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
public function testNestedMapping() |
| 312 |
|
{ |