public function PrintFormatTest::testGetPassedInConfiguration in Printer and PDF versions for Drupal 8+ 8
Same name and namespace in other branches
- 2.x tests/src/Unit/Plugin/PrintableFormat/PrintFormatTest.php \Drupal\Tests\printable\Unit\Plugin\PrintableFormat\PrintFormatTest::testGetPassedInConfiguration()
Tests that additional configuration is internally stored and accessible.
@covers PrintFormat::GetPassedInConfiguration
File
- tests/
src/ Unit/ Plugin/ PrintableFormat/ PrintFormatTest.php, line 108
Class
- PrintFormatTest
- Tests the print format plugin.
Namespace
Drupal\Tests\printable\Unit\Plugin\PrintableFormatCode
public function testGetPassedInConfiguration() {
$format = new PrintFormat([
'test_configuration_value' => TRUE,
], $this->pluginId, $this->pluginDefinition, $this
->getConfigFactoryStub(), $this
->getCssIncludeStub(), $this
->getLinkExtractorIncludeStub());
$this
->assertEquals([
'show_print_dialogue' => TRUE,
'test_configuration_value' => TRUE,
], $format
->getConfiguration());
}