Sokil\Mongo\CursorTest::testPluck_findAsArray_CompoundField PHP Method

testPluck_findAsArray_CompoundField() public method

    public function testPluck_findAsArray_CompoundField()
    {
        $this->collection->insertMultiple(array(array('field' => array('f1' => 'a1', 'f2' => 'b1')), array('field' => array('f1' => 'a2', 'f2' => 'b2')), array('field' => array('f1' => 'a3', 'f2' => 'b3')), array('field' => array('f1' => 'a4', 'f2' => 'b4'))));
        $this->assertEquals(array('b1', 'b2', 'b3', 'b4'), array_values($this->collection->findAsArray()->pluck('field.f2')));
    }