summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-12-12 16:23:39 +0100
committerVincent Petry <pvince81@owncloud.com>2014-12-12 16:23:39 +0100
commitc7ce3b84f021eb11a1369f43c8055ba95f254443 (patch)
treeafff8c8ca030c11521e41c5d0080c0d1c1744e4f /tests
parent4b57892c4eeeb7bd3c8b1b0465acf032dc84fd19 (diff)
parent04aaa728103c5ff184a89e8b69bca3f196c52224 (diff)
downloadnextcloud-server-c7ce3b84f021eb11a1369f43c8055ba95f254443.tar.gz
nextcloud-server-c7ce3b84f021eb11a1369f43c8055ba95f254443.zip
Merge pull request #12806 from owncloud/display-backend-in-usermgnt
Show user backend in user management
Diffstat (limited to 'tests')
-rw-r--r--tests/settings/controller/userscontrollertest.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/settings/controller/userscontrollertest.php b/tests/settings/controller/userscontrollertest.php
index eb48babadc8..26ca6f7e5f3 100644
--- a/tests/settings/controller/userscontrollertest.php
+++ b/tests/settings/controller/userscontrollertest.php
@@ -182,6 +182,10 @@ class UsersControllerTest extends \Test\TestCase {
$user
->method('getHome')
->will($this->returnValue('/home/user'));
+ $user
+ ->expects($this->once())
+ ->method('getBackendClassName')
+ ->will($this->returnValue('bar'));
$this->container['UserManager']
->expects($this->once())
@@ -193,7 +197,8 @@ class UsersControllerTest extends \Test\TestCase {
array(
'username' => 'foo',
'groups' => null,
- 'storageLocation' => '/home/user'
+ 'storageLocation' => '/home/user',
+ 'backend' => 'bar'
),
Http::STATUS_CREATED
);
@@ -214,6 +219,10 @@ class UsersControllerTest extends \Test\TestCase {
$user
->method('getHome')
->will($this->returnValue('/home/user'));
+ $user
+ ->expects($this->once())
+ ->method('getBackendClassName')
+ ->will($this->returnValue('bar'));
$existingGroup = $this->getMockBuilder('\OCP\IGroup')
->disableOriginalConstructor()->getMock();
$existingGroup
@@ -250,7 +259,8 @@ class UsersControllerTest extends \Test\TestCase {
array(
'username' => 'foo',
'groups' => array('NewGroup', 'ExistingGroup'),
- 'storageLocation' => '/home/user'
+ 'storageLocation' => '/home/user',
+ 'backend' => 'bar'
),
Http::STATUS_CREATED
);