Doctrine\MongoDB\Tests\CollectionEventsChangingContextTest::testRemove PHP Метод

testRemove() публичный Метод

public testRemove ( )
    public function testRemove()
    {
        $query = ['b'];
        $options = ['c'];
        $modifiedQuery = ['e'];
        $modifiedOptions = ['f'];
        // This listener will modify the data and options.
        $preRemoveListener = new PreRemoveListener($modifiedQuery, $modifiedOptions);
        $eventManager = new EventManager();
        $eventManager->addEventListener([Events::preRemove], $preRemoveListener);
        // Ensure that the modified pipeline and options are sent to the doAggregate call.
        $collection = $this->getMockCollection($eventManager, ['doRemove' => [$modifiedQuery, $modifiedOptions]]);
        $collection->remove($query, $options);
    }