You are here

public function ConditionTest::testBool in Apigee Edge 8

Tests a boolean condition.

File

tests/src/Unit/ConditionTest.php, line 73

Class

ConditionTest
Entity query condition tests.

Namespace

Drupal\Tests\apigee_edge\Unit

Code

public function testBool() {
  $cond = $this
    ->mockCondition();
  $cond
    ->condition('foo_baz', TRUE);
  $this
    ->assertFilters($cond, function (EntityInterface $item) : bool {
    return $item
      ->isFooBaz();
  });
}