function ContextAwarePluginTraitTest::testGetContextValue
Tests get context value.
@legacy-covers ::getContextValue
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Plugin/ Context/ ContextAwarePluginTraitTest.php, line 84
Class
Namespace
Drupal\KernelTests\Core\Plugin\ContextCode
public function testGetContextValue() : void {
$this->plugin
->setContextValue('nato_letter', 'Alpha');
$this->assertSame('Alpha', $this->plugin
->getContextValue('nato_letter'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.