You are here

public function FootermapBlockTest::testDefaultConfiguration in footermap: a footer site map 8

Asserts that default configuration matches expected values.

File

tests/src/Unit/Plugin/Block/FootermapBlockTest.php, line 198

Class

FootermapBlockTest
Test footermap block methods.

Namespace

Drupal\Tests\footermap\Unit\Plugin\Block

Code

public function testDefaultConfiguration() {
  $expected = [
    'footermap_recurse_limit' => 0,
    'footermap_display_heading' => 1,
    'footermap_avail_menus' => [],
    'footermap_top_menu' => '',
  ];
  $block = $this
    ->getPlugin();
  $this
    ->assertEquals($expected, $block
    ->defaultConfiguration());
}