removeRootPathMapping() public method

public removeRootPathMapping ( $repositoryPath )
 public function testRemovesRootPathMappingRestoresConflictsIfSavingFails()
 {
     $this->initDefaultManager();
     $this->rootPackageFile->addPathMapping($mapping1 = new PathMapping('/path', 'resources'));
     $this->packageFile1->addPathMapping($mapping2 = new PathMapping('/path', 'resources'));
     $this->repo->expects($this->at(0))->method('add')->with('/path', new DirectoryResource($this->packageDir1 . '/resources'));
     $this->repo->expects($this->at(1))->method('remove')->with('/path');
     $this->packageFileStorage->expects($this->once())->method('saveRootPackageFile')->willThrowException(new TestException('Cannot save'));
     try {
         $this->manager->removeRootPathMapping('/path');
         $this->fail('Expected a TestException');
     } catch (TestException $e) {
     }
     $this->assertTrue($mapping1->isConflicting());
     $this->assertTrue($mapping2->isConflicting());
     $this->assertCount(1, $this->manager->getPathConflicts());
 }