You are here

public function PluginSelectorBaseTest::testGetConfiguration in Plugin 8.2

@covers ::setConfiguration @covers ::getConfiguration

File

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

Class

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

Namespace

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

Code

public function testGetConfiguration() {
  $configuration = array(
    $this
      ->randomMachineName(),
  );
  $this
    ->assertSame($this->sut, $this->sut
    ->setConfiguration($configuration));
  $this
    ->assertSame($configuration, $this->sut
    ->getConfiguration());
}