Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
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 <[email protected]>
  • Loading branch information
m7913d committed Jun 5, 2021
commit e16682aeda94c3c86be131371c35cb4255b86f3a
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,12 @@ public function testAddGroup() {
->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');
}
Expand All @@ -419,10 +421,12 @@ public function testAddGroupWithSpecialChar() {
->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');
}
Expand Down