public function testWhere()
 {
     $login = uniqid();
     $expectedDsl = ['term' => ['login' => $login]];
     $this->queryBuilder->where('login', $login);
     $this->assertExpectedDsl($expectedDsl);
 }
 public function testAndComposition()
 {
     $first = uniqid();
     $second = uniqid();
     $this->queryBuilder->where('login', $first)->where('description', $second);
     $expectedQuery = ['bool' => ['must' => [['term' => ['login' => $first]], ['term' => ['description' => $second]]]]];
     $this->assertExpectedQuery($expectedQuery);
 }