public function ContextTest::testDefaultDataValue in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php \Drupal\Tests\Core\Plugin\Context\ContextTest::testDefaultDataValue()
- 10 core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php \Drupal\Tests\Core\Plugin\Context\ContextTest::testDefaultDataValue()
@covers ::getContextData
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ Context/ ContextTest.php, line 67 - 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 testDefaultDataValue() {
$this
->setUpDefaultValue('test');
$context = new Context($this->contextDefinition);
$context
->setTypedDataManager($this->typedDataManager);
$this
->assertEquals($this->typedData, $context
->getContextData());
}