public function testGetWorkingCopyPathFromDeletedPath() { $this->createTempFolder(); $this->connector->isUrl($this->tempFolder . '/deleted')->willReturn(false); $this->connector->isUrl($this->tempFolder)->willReturn(false); $this->connector->isWorkingCopy($this->tempFolder)->willReturn(true); $this->assertEquals($this->tempFolder, $this->workingCopyResolver->getWorkingCopyPath($this->tempFolder . '/deleted'), 'Cache Miss'); $this->assertEquals($this->tempFolder, $this->workingCopyResolver->getWorkingCopyPath($this->tempFolder . '/deleted'), 'Cache Hit'); }
/** * Return working copy path. * * @return string */ protected function getWorkingCopyPath() { return $this->_workingCopyResolver->getWorkingCopyPath($this->getRawPath()); }