protected function EntityPrintTest::getMockPdfBuilder in Entity Print 8
Get a mock pdf builder.
Return value
\Drupal\entity_print\EntityPrintPdfBuilder The entity pdf builder mock.
2 calls to EntityPrintTest::getMockPdfBuilder()
- EntityPrintTest::testGenerateFilename in tests/
src/ Unit/ EntityPrintTest.php - Test safe file generation.
- EntityPrintTest::testGenerateMultipleFilename in tests/
src/ Unit/ EntityPrintTest.php - Test multiple file generation.
File
- tests/
src/ Unit/ EntityPrintTest.php, line 86
Class
- EntityPrintTest
- @coversDefaultClass \Drupal\entity_print\EntityPrintPdfBuilder @group entity_print
Namespace
Drupal\Tests\entity_print\UnitCode
protected function getMockPdfBuilder() {
$pdf_builder = $this
->getMockBuilder('Drupal\\entity_print\\EntityPrintPdfBuilder')
->disableOriginalConstructor()
->setMethods([])
->getMock();
return $pdf_builder;
}