You are here

public function BlockStyleBaseTest::testGetConfiguration in Block Style Plugins 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/Plugin/BlockStyleBaseTest.php \Drupal\Tests\block_style_plugins\Unit\Plugin\BlockStyleBaseTest::testGetConfiguration()

Tests the getConfiguration method.

See also

::getConfiguration()

File

tests/src/Unit/Plugin/BlockStyleBaseTest.php, line 264

Class

BlockStyleBaseTest
@coversDefaultClass \Drupal\block_style_plugins\Plugin\BlockStyleBase @group block_style_plugins

Namespace

Drupal\Tests\block_style_plugins\Unit\Plugin

Code

public function testGetConfiguration() {
  $expected = [
    'sample_class' => '',
    'sample_checkbox' => FALSE,
  ];
  $this->plugin
    ->setConfiguration([]);
  $return = $this->plugin
    ->getConfiguration();
  $this
    ->assertEquals($expected, $return);
}