Skip to content

Conversation

@ChristophWurst
Copy link
Member

  • Replace deprecated getMock with createMock
  • Use createMock consistently
  • Use php's ::class references

This is a follow-up PR of #3650 (comment) where I started fixing phpunit warnings. This little cleanup should make the tests a bit more robust.

* Replace deprecated getMock with createMock
* Use createMock consistently
* Use php's ::class references

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@mention-bot
Copy link

@ChristophWurst, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rullzer, @LukasReschke and @schiessle to be potential reviewers.

@MorrisJobke MorrisJobke merged commit aa4d9a0 into master Feb 28, 2017
@MorrisJobke MorrisJobke deleted the refactor/provisioning-usercontroller-test branch February 28, 2017 19:12
$loggedInUser = $this->getMockBuilder('OCP\IUser')
$loggedInUser = $this->getMockBuilder(IUser::class)
->disableOriginalConstructor()
->getMock();
Copy link
Member

Choose a reason for hiding this comment

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

could have used createMock as well

@ChristophWurst
Copy link
Member Author

sure. I overlooked this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants