You are here

public function PrintFormatTest::testGetLabel in Printer and PDF versions for Drupal 8+ 2.x

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

Tests getting the plugin label from the plugin.

@covers PrintFormat::GetLabel

File

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

Class

PrintFormatTest
Tests the print format plugin.

Namespace

Drupal\Tests\printable\Unit\Plugin\PrintableFormat

Code

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