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