8000 [HttpFoundation] don't call constructors on Mongo mock objects by xabbuh · Pull Request #16370 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpFoundation] don't call constructors on Mongo mock objects #16370

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

Merged
merged 1 commit into from
Oct 28, 2015

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented Oct 28, 2015
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #16287
License MIT
Doc PR

Calling the parent constructor of the mocked Mongo class tries to
connect to a local MongoDB server which fails in case no local server
was configured.

Similarly, when the parent constructor of the mocked MongoCollection
class is called it performs checks on the passed arguments which fails
again when a connection was not established successfully before.

Calling the parent constructor of the mocked `Mongo` class tries to
connect to a local MongoDB server which fails in case no local server
was configured.

Similarly, when the parent constructor of the mocked `MongoCollection`
class is called it performs checks on the passed arguments which fails
again when a connection was not established successfully before.
@xabbuh
Copy link
Member Author
xabbuh commented Oct 28, 2015

@EmanueleMinotto Can you confirm that this works for you too?

@EmanueleMinotto
Copy link

it works for me 👍

@Tobion
Copy link
Contributor
Tobion commented Oct 28, 2015

Thanks @xabbuh and @EmanueleMinotto

@Tobion Tobion merged commit 6541b8b into symfony:2.3 Oct 28, 2015
Tobion added a commit that referenced this pull request Oct 28, 2015
…bjects (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[HttpFoundation] don't call constructors on Mongo mock objects

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16287
| License       | MIT
| Doc PR        |

Calling the parent constructor of the mocked `Mongo` class tries to
connect to a local MongoDB server which fails in case no local server
was configured.

Similarly, when the parent constructor of the mocked `MongoCollection`
class is called it performs checks on the passed arguments which fails
again when a connection was not established successfully before.

Commits
-------

6541b8b don't call constructors on Mongo mock objects
@xabbuh xabbuh deleted the pr-16287 branch October 28, 2015 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0