8000 [Testing] Updated the contents about getting the container in tests by javiereguiluz · Pull Request #14071 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Testing] Updated the contents about getting the container in tests #14071

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 23, 2020

Conversation

javiereguiluz
Copy link
Member

I know that using the container in tests is an edge-case ... but still, I think that the current docs are confusing and convoluted. This PR proposes to simplify the explanation of the different container types.

@wouterj
Copy link
Member
wouterj commented Oct 23, 2020

Thank you Javier. I think this is much clearer indeed :)

};
public function testSomething()
{
$client = self::createClient();
Copy link
Contributor

Choose a reason for hiding this comment

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

createClient doesn't exist when a test class inherit from KernelTestCase. Is there a workaround?

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