public function EntityPrintTest::generateMultipleFilenameDataProvider in Entity Print 8
Data provider for multiple filename generation.
Return value
array An array of data rows for testing filename generation.
File
- tests/
src/ Unit/ EntityPrintTest.php, line 73
Class
- EntityPrintTest
- @coversDefaultClass \Drupal\entity_print\EntityPrintPdfBuilder @group entity_print
Namespace
Drupal\Tests\entity_print\UnitCode
public function generateMultipleFilenameDataProvider() {
return [
[
[
'Node Title1',
'Node Title2',
'Node Title3',
],
'Node Title1-Node Title2-Node Title3.pdf',
],
[
[
'Title1 -=with special chars&*#',
'Title2 -=with special chars&*#',
'Title3 -=with special chars&*#',
],
'Title1 with special chars-Title2 with special chars-Title3 with special chars.pdf',
],
];
}