Adjust unittest

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Juan Pablo Villafáñez 2017-08-16 11:10:23 +02:00 committed by Arthur Schiwon
parent 18c35a7ab0
commit b8afb84b18
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 10 additions and 15 deletions

View File

@ -453,9 +453,8 @@ class UserTest extends \Test\TestCase {
->will($this->returnValue(false));
$user = $this->createMock('\OCP\IUser');
$user->expects($this->once())
->method('setQuota')
->with('default');
$user->expects($this->never())
->method('setQuota');
$userMgr->expects($this->once())
->method('get')
@ -495,9 +494,8 @@ class UserTest extends \Test\TestCase {
->method('__get');
$user = $this->createMock('\OCP\IUser');
$user->expects($this->once())
->method('setQuota')
->with('default');
$user->expects($this->never())
->method('setQuota');
$userMgr->expects($this->once())
->method('get')
@ -633,9 +631,8 @@ class UserTest extends \Test\TestCase {
->will($this->returnValue(false));
$user = $this->createMock('\OCP\IUser');
$user->expects($this->once())
->method('setQuota')
->with('default');
$user->expects($this->never())
->method('setQuota');
$userMgr->expects($this->once())
->method('get')
@ -681,9 +678,8 @@ class UserTest extends \Test\TestCase {
->will($this->returnValue(array('23 flush')));
$user = $this->createMock('\OCP\IUser');
$user->expects($this->once())
->method('setQuota')
->with('default');
$user->expects($this->never())
->method('setQuota');
$userMgr->expects($this->once())
->method('get')
@ -726,9 +722,8 @@ class UserTest extends \Test\TestCase {
->method('readAttribute');
$user = $this->createMock('\OCP\IUser');
$user->expects($this->once())
->method('setQuota')
->with('default');
$user->expects($this->never())
->method('setQuota');
$userMgr->expects($this->once())
->method('get')