public function FacetTest::testOnlyOneResult in Facets 8
Tests facet only one result.
@covers ::getShowOnlyOneResult @covers ::setShowOnlyOneResult
File
- tests/
src/ Kernel/ Entity/ FacetTest.php, line 223
Class
- FacetTest
- Class FacetTest.
Namespace
Drupal\Tests\facets\Kernel\EntityCode
public function testOnlyOneResult() {
$entity = new Facet([], 'facets_facet');
$this
->assertFalse($entity
->getShowOnlyOneResult());
$entity
->setShowOnlyOneResult(TRUE);
$this
->assertTrue($entity
->getShowOnlyOneResult());
}