public function testCacheUserHome() { list($lw, $con, $um) = $this->getConnectorAndLdapMock(); $access = new Access($con, $lw, $um); $con->expects($this->once())->method('writeToCache'); $access->cacheUserHome('foobar', '/foobars/path'); }