protected function MicrositeLogoBrandingBlockTest::setUp in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x modules/entity_hierarchy_microsite/tests/src/Functional/MicrositeLogoBrandingBlockTest.php \Drupal\Tests\entity_hierarchy_microsite\Functional\MicrositeLogoBrandingBlockTest::setUp()
Overrides MicrositeFunctionalTestBase::setUp
File
- modules/
entity_hierarchy_microsite/ tests/ src/ Functional/ MicrositeLogoBrandingBlockTest.php, line 17
Class
- MicrositeLogoBrandingBlockTest
- Defines a class for testing microsite logo plugin.
Namespace
Drupal\Tests\entity_hierarchy_microsite\FunctionalCode
protected function setUp() {
parent::setUp();
$this
->drupalPlaceBlock('entity_hierarchy_microsite_branding', [
'field' => self::FIELD_NAME,
'id' => 'microsite_branding',
'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',
],
],
],
]);
}