You are here

public function PluginSelectorBaseTest::testGetDescription in Plugin 8.2

@covers ::setDescription @covers ::getDescription

File

tests/src/Unit/Plugin/Plugin/PluginSelector/PluginSelectorBaseTest.php, line 95

Class

PluginSelectorBaseTest
@coversDefaultClass \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorBase

Namespace

Drupal\Tests\plugin\Unit\Plugin\Plugin\PluginSelector

Code

public function testGetDescription() {
  $description = $this
    ->randomMachineName();
  $this
    ->assertSame($this->sut, $this->sut
    ->setDescription($description));
  $this
    ->assertSame($description, $this->sut
    ->getDescription());
}