Skip to content

[Console] Add more context when CommandIsSuccessful fails #42881

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

Conversation

yoannrenard
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

Give some more context when CommandIsSuccessful::assertCommandIsSuccessful() fails

@@ -26,11 +26,27 @@ public function testConstraint()
$this->assertTrue($constraint->evaluate(Command::SUCCESS, '', true));
$this->assertFalse($constraint->evaluate(Command::FAILURE, '', true));
$this->assertFalse($constraint->evaluate(Command::INVALID, '', true));
}

public function providesUnsuccessful(): iterable
Copy link
Member

Choose a reason for hiding this comment

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

please put the dataprovider after the test case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@fabpot fabpot force-pushed the add_more_context_CommandIsSuccessful branch from 41178ca to 695cd9d Compare September 7, 2021 11:19
@fabpot
Copy link
Member

fabpot commented Sep 7, 2021

Thank you @yoannrenard.

@fabpot fabpot merged commit c4df3a7 into symfony:5.4 Sep 7, 2021
@yoannrenard yoannrenard deleted the add_more_context_CommandIsSuccessful branch September 7, 2021 11:38
This was referenced Nov 5, 2021
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