You are here

public function FacetTest::testMinCount in Facets 8

Tests minimum count.

@covers ::setMinCount @covers ::getMinCount

File

tests/src/Kernel/Entity/FacetTest.php, line 345

Class

FacetTest
Class FacetTest.

Namespace

Drupal\Tests\facets\Kernel\Entity

Code

public function testMinCount() {
  $entity = new Facet([], 'facets_facet');
  $this
    ->assertEquals(1, $entity
    ->getMinCount());
  $entity
    ->setMinCount(50);
  $this
    ->assertEquals(50, $entity
    ->getMinCount());
}