public function testOrComposition() { $first = uniqid(); $second = uniqid(); $this->queryBuilder->orWhere('login', $first)->orWhere('description', $second); $expectedQuery = ['bool' => ['should' => [['term' => ['login' => $first]], ['term' => ['description' => $second]]], 'minimum_should_match' => $this->queryBuilder->getMinimumShouldMatch()]]; $this->assertExpectedQuery($expectedQuery); }