You are here

public function BlockStyleBaseTest::testGetConfiguration in Block Style Plugins 8

Same name and namespace in other branches
  1. 8.2 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 299

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
    ->assertArrayEquals($expected, $return);
}