public function testGetPrincipalsByPathEmpty() { $this->groupManager->expects($this->once())->method('get')->with('foo')->will($this->returnValue(null)); $response = $this->connector->getPrincipalByPath('principals/groups/foo'); $this->assertSame(null, $response); }