You are here

public function PrintFormatTest::testDefaultConfiguration in Printer and PDF versions for Drupal 8+ 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/Plugin/PrintableFormat/PrintFormatTest.php \Drupal\Tests\printable\Unit\Plugin\PrintableFormat\PrintFormatTest::testDefaultConfiguration()

Tests getting the default configuration for this plugin.

@covers PrintFormat::DefaultConfiguration

File

tests/src/Unit/Plugin/PrintableFormat/PrintFormatTest.php, line 88

Class

PrintFormatTest
Tests the print format plugin.

Namespace

Drupal\Tests\printable\Unit\Plugin\PrintableFormat

Code

public function testDefaultConfiguration() {
  $format = new PrintFormat($this->configuration, $this->pluginId, $this->pluginDefinition, $this
    ->getConfigFactoryStub(), $this
    ->getCssIncludeStub(), $this
    ->getLinkExtractorIncludeStub());
  $this
    ->assertEquals([
    'show_print_dialogue' => TRUE,
  ], $format
    ->defaultConfiguration());
}