public function ContextBlockTest::testNode in Core Context 8
Tests viewing context values stored on a node.
File
- tests/
src/ Functional/ ContextBlockTest.php, line 169
Class
- ContextBlockTest
- @group core_context
Namespace
Drupal\Tests\core_context\FunctionalCode
public function testNode() {
$node_type = $this
->drupalCreateContentType()
->id();
$node = $this
->drupalCreateNode([
'type' => $node_type,
]);
$this
->doEntityTest($node);
}