You are here

public function BlockStyleTest::testDefaultConfiguration in Block Style Plugins 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/Plugin/BlockStyleTest.php \Drupal\Tests\block_style_plugins\Unit\Plugin\BlockStyleTest::testDefaultConfiguration()

Tests the defaultConfiguration method.

See also

::defaultConfiguration()

File

tests/src/Unit/Plugin/BlockStyleTest.php, line 102

Class

BlockStyleTest
@coversDefaultClass \Drupal\block_style_plugins\Plugin\BlockStyle @group block_style_plugins

Namespace

Drupal\Tests\block_style_plugins\Unit\Plugin

Code

public function testDefaultConfiguration() {
  $expected = [
    'test_field' => 'default text',
    'second_field' => 1,
  ];
  $default = $this->plugin
    ->defaultConfiguration();
  $this
    ->assertArrayEquals($expected, $default);
}