You are here

public function PluginSelectorBaseTest::testGetLabel in Plugin 8.2

@covers ::setLabel @covers ::getLabel

File

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

Class

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

Namespace

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

Code

public function testGetLabel() {
  $label = $this
    ->randomMachineName();
  $this
    ->assertSame($this->sut, $this->sut
    ->setLabel($label));
  $this
    ->assertSame($label, $this->sut
    ->getLabel());
}