Fix renamed class

This commit is contained in:
Joas Schilling 2016-05-19 10:33:12 +02:00
parent 320b1c3abf
commit bae4118b4f
No known key found for this signature in database
GPG key ID: 70A0B324C41C0946

View file

@ -121,7 +121,7 @@ class User extends \Test\TestCase {
* @var \OC\User\Backend | \PHPUnit_Framework_MockObject_MockObject $backend
*/
require_once 'avataruserdummy.php';
$backend = $this->getMock('Avatar_User_Dummy');
$backend = $this->getMock('Test\User\AvatarUserDummy');
$backend->expects($this->once())
->method('canChangeAvatar')
->with($this->equalTo('foo'))
@ -146,7 +146,7 @@ class User extends \Test\TestCase {
* @var \OC\User\Backend | \PHPUnit_Framework_MockObject_MockObject $backend
*/
require_once 'avataruserdummy.php';
$backend = $this->getMock('Avatar_User_Dummy');
$backend = $this->getMock('Test\User\AvatarUserDummy');
$backend->expects($this->once())
->method('canChangeAvatar')
->with($this->equalTo('foo'))
@ -171,7 +171,7 @@ class User extends \Test\TestCase {
* @var \OC\User\Backend | \PHPUnit_Framework_MockObject_MockObject $backend
*/
require_once 'avataruserdummy.php';
$backend = $this->getMock('Avatar_User_Dummy');
$backend = $this->getMock('Test\User\AvatarUserDummy');
$backend->expects($this->never())
->method('canChangeAvatar');