From 04aaa728103c5ff184a89e8b69bca3f196c52224 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 12 Dec 2014 10:21:50 +0100 Subject: Show user backend in user management * add switch to settings to show user backend * user classes for headers and rows to unify the show/hide statement * add user backend to response of user create request * proper markup in settings area --- tests/settings/controller/userscontrollertest.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'tests') 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 ); -- cgit v1.2.3