public function ContextAwarePluginBaseTest::testGetContextValue in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php \Drupal\KernelTests\Core\Plugin\Context\ContextAwarePluginBaseTest::testGetContextValue()
@covers ::getContextValue
File
- core/
tests/ Drupal/ KernelTests/ Core/ Plugin/ Context/ ContextAwarePluginBaseTest.php, line 70
Class
- ContextAwarePluginBaseTest
- @coversDefaultClass \Drupal\Core\Plugin\ContextAwarePluginBase
Namespace
Drupal\KernelTests\Core\Plugin\ContextCode
public function testGetContextValue() {
// Assert that the context value passed in the plugin configuration is
// available.
$this
->assertSame('Alpha', $this->plugin
->getContextValue('nato_letter'));
}