public function FilenameGeneratorTest::testGenerateFilename in Entity Print 8.2
Test filename generation for the content entities.
@covers ::generateFilename @dataProvider generateFilenameDataProvider
File
- tests/
src/ Kernel/ FilenameGeneratorTest.php, line 48
Class
- FilenameGeneratorTest
- @coversDefaultClass \Drupal\entity_print\FilenameGenerator @group entity_print
Namespace
Drupal\Tests\entity_print\KernelCode
public function testGenerateFilename($title, $expected_filename) {
$node = $this
->createNode([
'title' => $title,
]);
$this
->assertEquals($expected_filename, $this->filenameGenerator
->generateFilename([
$node,
]));
}