summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-07-24 07:44:09 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-07-24 11:42:07 +0200
commit6d4731024a18b7497dc19eefa97393eae7a3617b (patch)
treeef70dba744dcf8fa79574b07a7627771f1c7f62e /apps/provisioning_api/tests
parent989614f9d5faa11157b232785537eb5cca927649 (diff)
downloadnextcloud-server-6d4731024a18b7497dc19eefa97393eae7a3617b.tar.gz
nextcloud-server-6d4731024a18b7497dc19eefa97393eae7a3617b.zip
Some app fixes of phpstorm inspections
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/provisioning_api/tests')
-rw-r--r--apps/provisioning_api/tests/Controller/GroupsControllerTest.php7
-rw-r--r--apps/provisioning_api/tests/Controller/UsersControllerTest.php2
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
index 25059e85425..caf6ae109f7 100644
--- a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
@@ -37,6 +37,7 @@ class GroupsControllerTest extends \Test\TestCase {
protected $userSession;
/** @var \OC\SubAdmin|\PHPUnit_Framework_MockObject_MockObject */
protected $subAdminManager;
+
/** @var GroupsController */
protected $api;
@@ -60,11 +61,15 @@ class GroupsControllerTest extends \Test\TestCase {
$request = $this->getMockBuilder('OCP\IRequest')
->disableOriginalConstructor()
->getMock();
+
+ $logger = $this->createMock(ILogger::class);
+
$this->api = new GroupsController(
'provisioning_api',
$request,
$this->groupManager,
- $this->userSession
+ $this->userSession,
+ $logger
);
}
diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
index c712cd7485d..19b5fa65e9a 100644
--- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
@@ -1128,7 +1128,7 @@ class UsersControllerTest extends TestCase {
}
public function testEditUserAdminUserSelfEditChangeValidQuota() {
- $loggedInUser = $this->getMockBuilder('\OCP\IUser')->disableOriginalConstructor()->getMock();;
+ $loggedInUser = $this->getMockBuilder('\OCP\IUser')->disableOriginalConstructor()->getMock();
$loggedInUser
->expects($this->any())
->method('getUID')