Use the correct Dummy and Backend class
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
9871e4eaee
commit
ada615eb86
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue