You are here

public function FacetTest::testExclude in Facets 8

Tests exclude operator.

@covers ::getExclude @covers ::setExclude

File

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

Class

FacetTest
Class FacetTest.

Namespace

Drupal\Tests\facets\Kernel\Entity

Code

public function testExclude() {
  $entity = new Facet([], 'facets_facet');
  $this
    ->assertFalse($entity
    ->getExclude());
  $entity
    ->setExclude(TRUE);
  $this
    ->assertTrue($entity
    ->getExclude());
}