public function DropdownWidgetTest::testDefaultConfiguration in Facets 8
Tests default configuration.
Overrides WidgetTestBase::testDefaultConfiguration
File
- tests/
src/ Unit/ Plugin/ widget/ DropdownWidgetTest.php, line 55
Class
- DropdownWidgetTest
- Unit test for widget.
Namespace
Drupal\Tests\facets\Unit\Plugin\widgetCode
public function testDefaultConfiguration() {
$default_config = $this->widget
->defaultConfiguration();
// We can't use $this->assertEquals() because that makes mocking here too
// hard, that way we'd need to also mock the translation interface. That's
// not needed.
$this
->assertArrayHasKey('show_numbers', $default_config);
$this
->assertArrayHasKey('default_option_label', $default_config);
}