public function FootermapBlockTest::testInitialize in footermap: a footer site map 8
Asserts that the initialize method works.
File
- tests/
src/ Unit/ Plugin/ Block/ FootermapBlockTest.php, line 171
Class
- FootermapBlockTest
- Test footermap block methods.
Namespace
Drupal\Tests\footermap\Unit\Plugin\BlockCode
public function testInitialize() {
$configuration = [
'label' => 'Footermap',
'display_label' => TRUE,
];
$plugin_id = 'footermap';
$plugin_definition = [
'plugin_id' => $plugin_id,
'provider' => 'footermap',
];
$block = new FootermapBlock($configuration, $plugin_id, $plugin_definition, $this->container
->get('entity_type.manager'), $this->container
->get('entity.repository'), $this->container
->get('menu.link_tree'), $this->container
->get('plugin.manager.menu.link'), $this->container
->get('logger.factory'));
$this
->assertInstanceOf('\\Drupal\\footermap\\Plugin\\Block\\FootermapBlock', $block);
}