public function FacetTest::testEmptyWidget in Facets 8
Tests an empty widget.
@covers ::getWidget @covers ::getWidgetInstance
File
- tests/
src/ Kernel/ Entity/ FacetTest.php, line 101
Class
- FacetTest
- Class FacetTest.
Namespace
Drupal\Tests\facets\Kernel\EntityCode
public function testEmptyWidget() {
$entity = new Facet([], 'facets_facet');
$this
->assertNull($entity
->getWidget());
$this
->expectException(InvalidProcessorException::class);
$entity
->getWidgetInstance();
}