You are here

public function FacetTest::testHardLimit in Facets 8

Tests hard limit.

@covers ::setHardLimit @covers ::getHardLimit

File

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

Class

FacetTest
Class FacetTest.

Namespace

Drupal\Tests\facets\Kernel\Entity

Code

public function testHardLimit() {
  $entity = new Facet([], 'facets_facet');
  $this
    ->assertEquals(0, $entity
    ->getHardLimit());
  $entity
    ->setHardLimit(50);
  $this
    ->assertEquals(50, $entity
    ->getHardLimit());
}