public function ContextTest::testDefaultValue in Drupal 9
Same name in this branch
- 9 core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php \Drupal\Tests\Core\Plugin\Context\ContextTest::testDefaultValue()
- 9 core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php \Drupal\Tests\Component\Plugin\Context\ContextTest::testDefaultValue()
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php \Drupal\Tests\Core\Plugin\Context\ContextTest::testDefaultValue()
- 10 core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php \Drupal\Tests\Core\Plugin\Context\ContextTest::testDefaultValue()
@covers ::getContextValue
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ Context/ ContextTest.php, line 56 - Contains \Drupal\Tests\Core\Plugin\Context\ContextTest.
Class
- ContextTest
- @coversDefaultClass \Drupal\Core\Plugin\Context\Context @group Plugin
Namespace
Drupal\Tests\Core\Plugin\ContextCode
public function testDefaultValue() {
$this
->setUpDefaultValue('test');
$context = new Context($this->contextDefinition);
$context
->setTypedDataManager($this->typedDataManager);
$this
->assertEquals('test', $context
->getContextValue());
}