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>
This commit is contained in:
Dries Mys 2021-06-05 21:23:22 +02:00
parent befd0452b2
commit e16682aeda

View file

@ -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');
}