Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] Adding a testing/database cookbook#2407

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 2 commits intosymfony:2.0fromSgoettschkes:issue480
Apr 26, 2013
Merged

[WIP] Adding a testing/database cookbook#2407

weaverryan merged 2 commits intosymfony:2.0fromSgoettschkes:issue480
Apr 26, 2013

Conversation

Sgoettschkes
Copy link
Contributor

This PR adds a new cookbook for testing with a database involved.

QA
Doc fix?no
New docs?yes
Applies to2.0+
Fixed tickets#480

This PR is not ready for merge yet

}
}

As the ``ObjectManager`` gets injected into the class through the constructor, it's
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Use some api link here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@wouterj API links don't work for Doctrine interfaces

->method('getBonus')
->will($this->returnValue(1100));

// Now, mock tthe repository so it returns the mock of the employee
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

typo:the

weaverryan added a commit that referenced this pull requestApr 26, 2013
[WIP] Adding a testing/database cookbook
@weaverryanweaverryan merged commit53174e0 intosymfony:2.0Apr 26, 2013
@weaverryan
Copy link
Member

Hey Sebastian!

I've merged this in now, since it already solves much of#480. I only had minor tweaks at sha:0506361. This is a very nice entry.

Thanks!

@SgoettschkesSgoettschkes deleted the issue480 branchApril 27, 2013 09:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@Sgoettschkes@weaverryan@stof@wouterj

[8]ページ先頭

©2009-2025 Movatter.jp