-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[6.x] Console Command Test with table() is broken #31445
Comments
Fixed in 6.15.1. |
Thanks for the quick fix, though I think this error still occurs when the test has the |
@adam-prickett
Downgrading to 6.14.0 worked like charm. |
@tbuteler @stefanullrich I’m going to take a look at this issue this evening and see if I can patch |
I side with @stefanullrich. I just upgraded from v6.11.0 => v6.15.1 and
|
It also broke my tests, somehow: See here: https://github.com/JosephSilber/bouncer/runs/443733143?check_suite_focus=true It fails at this line: |
Can you check if the tests breaking on I'm not sure how the test would fail on your case since I can't find that the code using |
@crynobone you're right. Bouncer's failing test has nothing to do with this (nor with It must be a different dependency that was updated. I'll have to investigate and track that down. Sorry for adding to the noise here. |
We've reverted the entire feature for now because of all the problems popping up. |
Description:
With #31426 now any command that uses
table()
is breaking on tests, the reason is at testing we mock aBufferedOutput
and not aConsoleOutput
, which hassection()
method:https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/Testing/PendingCommand.php#L185-L207
I tried to mock
ConsoleOutput
instead but it's not that simple as the output stream atConsoleOutput
is done on private methods.Steps To Reproduce:
Create a Command that uses
table()
and tests it asserting the exit code.The text was updated successfully, but these errors were encountered: