You are here

public function AdvancedPluginSelectorBaseTest::testGetSelectorVisibilityForSingleAvailability in Plugin 8.2

@covers ::getSelectorVisibilityForSingleAvailability @covers ::setSelectorVisibilityForSingleAvailability

File

tests/src/Unit/Plugin/Plugin/PluginSelector/AdvancedPluginSelectorBaseTest.php, line 699

Class

AdvancedPluginSelectorBaseTest
@coversDefaultClass \Drupal\plugin\Plugin\Plugin\PluginSelector\AdvancedPluginSelectorBase

Namespace

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

Code

public function testGetSelectorVisibilityForSingleAvailability() {
  $this
    ->assertFalse($this->sut
    ->getSelectorVisibilityForSingleAvailability());
  $this->sut
    ->setSelectorVisibilityForSingleAvailability(TRUE);
  $this
    ->assertTrue($this->sut
    ->getSelectorVisibilityForSingleAvailability());
}