public function FacetTest::testQueryOperator in Facets 8
Tests query operator.
@covers ::setQueryOperator @covers ::getQueryOperator
File
- tests/
src/ Kernel/ Entity/ FacetTest.php, line 168
Class
- FacetTest
- Class FacetTest.
Namespace
Drupal\Tests\facets\Kernel\EntityCode
public function testQueryOperator() {
$entity = new Facet([], 'facets_facet');
$this
->assertEquals('or', $entity
->getQueryOperator());
$entity
->setQueryOperator('and');
$this
->assertEquals('and', $entity
->getQueryOperator());
}