function ContextTest::testSetContextValueTypedData
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php \Drupal\Tests\Core\Plugin\Context\ContextTest::testSetContextValueTypedData()
- 9 core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php \Drupal\Tests\Core\Plugin\Context\ContextTest::testSetContextValueTypedData()
- 8.9.x core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php \Drupal\Tests\Core\Plugin\Context\ContextTest::testSetContextValueTypedData()
- main core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php \Drupal\Tests\Core\Plugin\Context\ContextTest::testSetContextValueTypedData()
Tests set context value typed data.
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ Context/ ContextTest.php, line 95
Class
Namespace
Drupal\Tests\Core\Plugin\ContextCode
public function testSetContextValueTypedData() : void {
$this->contextDefinition = $this->createMock('Drupal\\Core\\Plugin\\Context\\ContextDefinitionInterface');
$typed_data = $this->createMock('Drupal\\Core\\TypedData\\TypedDataInterface');
$context = new Context($this->contextDefinition, $typed_data);
$this->assertSame($typed_data, $context->getContextData());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.