public function testComplexMatch() { $login = uniqid(); $expectedDsl = ['match' => ['login' => ['query' => $login, 'type' => 'phrase']]]; $this->queryBuilder->match('login', ['query' => $login, 'type' => 'phrase']); $this->assertExpectedDsl($expectedDsl); }