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

testSelectSliceWithCount() public method

    public function testSelectSliceWithCount()
    {
        $qb = $this->getTestQueryBuilder()->selectSlice('tags', 10);
        $expected = ['tags' => ['$slice' => 10]];
        $this->assertEquals($expected, $qb->debug('select'));
    }
BuilderTest