protected function MicrositeMenuBlockTest::setUp in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x modules/entity_hierarchy_microsite/tests/src/Functional/MicrositeMenuBlockTest.php \Drupal\Tests\entity_hierarchy_microsite\Functional\MicrositeMenuBlockTest::setUp()
Overrides MicrositeFunctionalTestBase::setUp
File
- modules/
entity_hierarchy_microsite/ tests/ src/ Functional/ MicrositeMenuBlockTest.php, line 17
Class
- MicrositeMenuBlockTest
- Defines a class for testing microsite menu block.
Namespace
Drupal\Tests\entity_hierarchy_microsite\FunctionalCode
protected function setUp() {
parent::setUp();
$this
->drupalPlaceBlock('entity_hierarchy_microsite_menu', [
'field' => self::FIELD_NAME,
'id' => 'microsite_menu',
'context_mapping' => [
'node' => '@node.node_route_context:node',
],
'region' => 'content',
'visibility' => [
'entity_hierarchy_microsite_child' => [
'id' => 'entity_hierarchy_microsite_child',
'field' => self::FIELD_NAME,
'negate' => FALSE,
'context_mapping' => [
'node' => '@node.node_route_context:node',
],
],
],
]);
}