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>
pull/27089/head
Dries Mys 5 years ago
parent befd0452b2
commit e16682aeda
  1. 8
      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');
}

Loading…
Cancel
Save