Use the correct Dummy and Backend class

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/4406/head
Joas Schilling 9 years ago
parent 9871e4eaee
commit ada615eb86
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
  1. 4
      tests/lib/User/UserTest.php

@ -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;

Loading…
Cancel
Save