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 self update command #98

Merged
merged 1 commit into from
May 19, 2016

Conversation

amansilla
Copy link

This pull requests add some tests for the self-update command.

The command itself was added as well in order to allow testing but there is a dedicated pull request for that, see #84.

@amansilla amansilla changed the title Self update command tests Add tests for self update command May 17, 2016
*/
public function testUpdateSuccess($isPharOutdated)
{
if ($isPharOutdated) {
Copy link
Contributor

Choose a reason for hiding this comment

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

just use $this->updater->update()->willReturn($isPharOutdated);

@amansilla
Copy link
Author

@slde-flash I fixed the code following your instructions, so I guess now is ready to be merged.

@slde-flash
Copy link
Contributor

thanks :)

@slde-flash slde-flash merged commit da72875 into qossmic:master May 19, 2016
@amansilla amansilla deleted the self-update-command-tests branch May 19, 2016 10:23
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.

None yet

2 participants