Skip to content
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

[8.x] Fix Artisan test method PendingCommand::doesntExpectOutput() always causing a failed test #36806

Merged

Commits on Mar 30, 2021

  1. Fix doesntExpectOutput() always causing a failed test

    On what should be a passing test when the doesntExpectOutput()
    arg hasn't been output, PHPUnit's tearDown() call to
    Mockery::close() will throw any exception.
    
    Mockery\Exception\InvalidCountException: Method doWrite($output, <Any>)
    from Mockery_0_Symfony_Component_Console_Output_BufferedOutput should be
    called exactly 1 times but called 0 times.
    
    During a successful test run, it _should_ be called 0 times.
    Remove once() to allow the `andReturnUsing()` callback to be
    invoked one or many times.
    
    And add integration test coverage to PendingCommand.
    derekmd committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    1405012 View commit details
    Browse the repository at this point in the history