public testSortMetaDoesNotProjectExistingField ( ) |
public function testSortMetaDoesNotProjectExistingField()
{
$qb = $this->getTestQueryBuilder()->sortMeta('score', 'textScore');
$this->assertEquals(['score' => ['$meta' => 'textScore']], $qb->debug('select'));
$this->assertEquals(['score' => ['$meta' => 'textScore']], $qb->debug('sort'));
}