public function ConditionTest::testSimpleEquality in Apigee Edge 8
Tests a simple equality condition.
File
- tests/
src/ Unit/ ConditionTest.php, line 60
Class
- ConditionTest
- Entity query condition tests.
Namespace
Drupal\Tests\apigee_edge\UnitCode
public function testSimpleEquality() {
$value = $this
->randomData()[0];
$cond = $this
->mockCondition();
$cond
->condition('id', $value);
$this
->assertFilters($cond, function (EntityInterface $item) use ($value) : bool {
return $item
->id() === $value;
});
}