Skip to content

[5.8] Fix command output/questions expectations #29580

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 3 commits into from
Aug 15, 2019

Conversation

themsaid
Copy link
Member

As reported in #29521, when trying to test that a question was asked multiple times or output was printed multiple times, the out of order exception is thrown.

This PR brings back the use of once(). However, it handles the Mockery exception thrown so instead of people seeing:

Mockery\Exception\InvalidCountException: Method doWrite('hola mundo', <Any>) from Mockery_0_Symfony_Component_Console_Output_BufferedOutput should be called
 exactly 1 times but called 0 times.

People see:

Output "hola mundo" was not printed.

@themsaid themsaid requested a review from driesvints August 15, 2019 09:05
@taylorotwell taylorotwell merged commit 8714896 into laravel:5.8 Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants