Doctrine\Tests\ODM\PHPCR\UnitOfWorkTest::testComputeSingleDocumentChangeSetForRemovedDocument PHP Метод

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

См. также: https://github.com/doctrine/phpcr-odm/issues/637
    public function testComputeSingleDocumentChangeSetForRemovedDocument()
    {
        $object = new UoWUser();
        $object->username = "bar";
        $object->id = '/somepath';
        $this->uow->scheduleRemove($object);
        // Should not throw "InvalidArgumentException: Document has to be managed for single computation"
        $this->uow->computeSingleDocumentChangeSet($object);
    }