Use the correct Dummy and Backend class

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-04-20 12:48:51 +02:00
parent 9871e4eaee
commit ada615eb86
No known key found for this signature in database
GPG key ID: E166FD8976B3BAC8

View file

@ -204,12 +204,12 @@ class UserTest extends TestCase {
/**
* @var Backend | \PHPUnit_Framework_MockObject_MockObject $backend
*/
$backend = $this->createMock(Dummy::class);
$backend = $this->createMock(\Test\Util\User\Dummy::class);
$backend->expects($this->at(0))
->method('implementsActions')
->will($this->returnCallback(function ($actions) {
if ($actions === Backend::GET_HOME) {
if ($actions === \OC\User\Backend::GET_HOME) {
return true;
} else {
return false;