We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to test an Artisan command's console output (via expectsOutput, doesntExpectOutput) which is using, for example, render() function?
expectsOutput
doesntExpectOutput
render()
Artisan command foo:
foo
... render('bar'); // even with no styling/HTML ...
Unit PEST:
it('does not show output foo string', function () { $this->artisan('foo') ->doesntExpectOutput('bar'); });
Apparently, there is no difference between using render('bar') or not: the test always passes. Am I doing anything wrong?
render('bar')
Thank you
The text was updated successfully, but these errors were encountered:
Hey @eleftrik, thanks for the issue, we want to support expectations, but is not yet available, if you want to contribute, feel free to do it.
I will keep this issue open.
Thanks.
Sorry, something went wrong.
@xiCO2k I think we should have a service provider, that automatically injects the command output on the renderUsing function...
TermwindServiceProvider
Laravel
Successfully merging a pull request may close this issue.
Is it possible to test an Artisan command's console output (via
expectsOutput
,doesntExpectOutput
) which is using, for example,render()
function?Artisan command
foo
:Unit PEST:
Apparently, there is no difference between using
render('bar')
or not: the test always passes.Am I doing anything wrong?
Thank you
The text was updated successfully, but these errors were encountered: