diff options
author | Dries Mys <dries.mys@my-dreams.be> | 2021-06-05 21:23:22 +0200 |
---|---|---|
committer | Dries Mys <dries.mys@my-dreams.be> | 2021-06-05 22:22:39 +0200 |
commit | e16682aeda94c3c86be131371c35cb4255b86f3a (patch) | |
tree | d9ee8dce705776eff0ad175018bd4caf098feb78 /apps/provisioning_api | |
parent | befd0452b289502bf7a7e9e30217cc30efd4cc00 (diff) | |
download | nextcloud-server-e16682aeda94c3c86be131371c35cb4255b86f3a.tar.gz nextcloud-server-e16682aeda94c3c86be131371c35cb4255b86f3a.zip |
Effectively return a valid group as it would be the case in a real
situation. Returned group object is now used to set the displayname if
provided.
Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r-- | apps/provisioning_api/tests/Controller/GroupsControllerTest.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php index 66e7665de63..12010995560 100644 --- a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php +++ b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php @@ -405,10 +405,12 @@ class GroupsControllerTest extends \Test\TestCase { ->with('NewGroup') ->willReturn(false); + $group = $this->createGroup('NewGroup'); $this->groupManager ->expects($this->once()) ->method('createGroup') - ->with('NewGroup'); + ->with('NewGroup') + ->willReturn($group); $this->api->addGroup('NewGroup'); } @@ -419,10 +421,12 @@ class GroupsControllerTest extends \Test\TestCase { ->with('Iñtërnâtiônàlizætiøn') ->willReturn(false); + $group = $this->createGroup('Iñtërnâtiônàlizætiøn'); $this->groupManager ->expects($this->once()) ->method('createGroup') - ->with('Iñtërnâtiônàlizætiøn'); + ->with('Iñtërnâtiônàlizætiøn') + ->willReturn($group); $this->api->addGroup('Iñtërnâtiônàlizætiøn'); } |