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