Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional test: atomicSet updates to embedded documents do not work #1153

Closed

Conversation

blockjon
Copy link

Making a change to the embedded document in this test fails to update the MongoDB record.

This test passes if strategy="set" is used.

repro:

phpunit --filter testFailureToUpdateEmbeddedDocumentWithAtomicSet

emits:

PHPUnit 4.1.6-9-gbe3530d by Sebastian Bergmann.

Configuration read from /mongodb-odm/phpunit.xml

F

Time: 1.41 seconds, Memory: 21.75Mb

There was 1 failure:

1) Doctrine\ODM\MongoDB\Tests\Functional\Ticket\GHXXXXTest::testFailureToUpdateEmbeddedDocumentWithAtomicSet
The chapter title failed to update.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'First chapter A'
+'A'

/mongodb-odm/tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/GHXXXXTest.php:33

FAILURES!
Tests: 1, Assertions: 1, Failures: 1.

@blockjon blockjon changed the title Functional test: atomicSet updates do not appear to work Functional test: atomicSet updates to embedded documents do not appear to work Jun 18, 2015
@blockjon blockjon changed the title Functional test: atomicSet updates to embedded documents do not appear to work Functional test: atomicSet updates to embedded documents do not work Jun 19, 2015
@malarzm malarzm added the Bug label Jun 19, 2015
@malarzm malarzm added this to the 1.0.0 milestone Jun 19, 2015
@malarzm
Copy link
Member

malarzm commented Jun 19, 2015

I'll be back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants