mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
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:
parent
befd0452b2
commit
e16682aeda
1 changed files with 6 additions and 2 deletions
|
|
@ -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…
Reference in a new issue