function ContextTest::testNullDataValue

Tests null data value.

@legacy-covers ::getContextData

File

core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php, line 84

Class

ContextTest
Tests Drupal\Core\Plugin\Context\Context.

Namespace

Drupal\Tests\Core\Plugin\Context

Code

public function testNullDataValue() : void {
  $this->setUpDefaultValue(NULL);
  $context = new Context($this->contextDefinition);
  $context->setTypedDataManager($this->typedDataManager);
  $this->assertEquals($this->typedData, $context->getContextData());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.