public function BlockStyleBaseTest::testDefaultConfiguration in Block Style Plugins 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/Plugin/BlockStyleBaseTest.php \Drupal\Tests\block_style_plugins\Unit\Plugin\BlockStyleBaseTest::testDefaultConfiguration()
Tests the defaultConfiguration method.
See also
::defaultConfiguration()
File
- tests/
src/ Unit/ Plugin/ BlockStyleBaseTest.php, line 168
Class
- BlockStyleBaseTest
- @coversDefaultClass \Drupal\block_style_plugins\Plugin\BlockStyleBase @group block_style_plugins
Namespace
Drupal\Tests\block_style_plugins\Unit\PluginCode
public function testDefaultConfiguration() {
$expected = [
'sample_class' => '',
'sample_checkbox' => FALSE,
];
$default = $this->plugin
->defaultConfiguration();
$this
->assertArrayEquals($expected, $default);
}