Doctrine\MongoDB\Tests\Query\BuilderTest::testSortMetaDoesNotProjectExistingField PHP Method

testSortMetaDoesNotProjectExistingField() public method

    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'));
    }
BuilderTest