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
1 changed files with 2 additions and 2 deletions

View File

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