You are here

public function ContextAwarePluginTraitTest::testGetContextValue in Drupal 9

@covers ::getContextValue

File

core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php, line 76

Class

ContextAwarePluginTraitTest
@coversDefaultClass \Drupal\Core\Plugin\ContextAwarePluginTrait

Namespace

Drupal\KernelTests\Core\Plugin\Context

Code

public function testGetContextValue() {
  $this->plugin
    ->setContextValue('nato_letter', 'Alpha');
  $this
    ->assertSame('Alpha', $this->plugin
    ->getContextValue('nato_letter'));
}