You are here

public function PrintFormatTest::testGetDescription 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::testGetDescription()

Tests getting the plugin description from the plugin.

@covers PrintFormat::GetDescription

File

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

Class

PrintFormatTest
Tests the print format plugin.

Namespace

Drupal\Tests\printable\Unit\Plugin\PrintableFormat

Code

public function testGetDescription() {
  $format = new PrintFormat($this->configuration, $this->pluginId, $this->pluginDefinition, $this
    ->getConfigFactoryStub(), $this
    ->getCssIncludeStub(), $this
    ->getLinkExtractorIncludeStub());
  $this
    ->assertEquals('Print description.', $format
    ->getDescription());
}