public function testGetPrincipalsByPrefixEmpty() { $this->groupManager->expects($this->once())->method('search')->with('')->will($this->returnValue([])); $response = $this->connector->getPrincipalsByPrefix('principals/groups'); $this->assertSame([], $response); }