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

Add Tests for ExecuteCommand #476

Merged
merged 2 commits into from
Jul 5, 2016

Conversation

chrisguitarguy
Copy link
Contributor

Done with the Symfony console command tester.

Closes #297

Done with the Symfony console command tester.

Closes doctrine#297

protected function setUp()
{
$this->questions = $this->getMock(QuestionHelper::class);
Copy link
Contributor

Choose a reason for hiding this comment

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

You just need to add something similar to the test here https://github.com/doctrine/migrations/blob/master/bin/doctrine-migrations.php#L74-L78 and then the last test will pass.

Thanks a lot for the PR.

@mikeSimonson
Copy link
Contributor

@chrisguitarguy Thanks a lot for the tests.
There is just one little change to make so that the last test pass.

Includes using the dialog helper as well as some small changes for the
command tester.
@chrisguitarguy
Copy link
Contributor Author

Should be good to go @mikeSimonson, didn't think about the DialogHelper thing when I originally wrote the tests. Had to make a few other changes to support the Symfony 2.3 CommandTester.

@mikeSimonson
Copy link
Contributor

@chrisguitarguy Thanks you are awesome

@mikeSimonson mikeSimonson merged commit ff8ed53 into doctrine:master Jul 5, 2016
@chrisguitarguy chrisguitarguy deleted the execute_tests branch July 5, 2016 21:58
@chrisguitarguy
Copy link
Contributor Author

No problem, @mikeSimonson. On vacation this week, so I thought I'd get back to helping out with migrations a bit.

@mikeSimonson
Copy link
Contributor

still awesome

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.

2 participants