clearRootPathMappings() публичный Метод

 public function testClearRootPathMappings()
 {
     $this->initDefaultManager();
     $this->repo->expects($this->at(0))->method('remove')->with('/app1');
     $this->repo->expects($this->at(1))->method('remove')->with('/app2');
     $this->packageFileStorage->expects($this->once())->method('saveRootPackageFile')->with($this->rootPackageFile)->will($this->returnCallback(function (RootPackageFile $rootPackageFile) {
         PHPUnit_Framework_Assert::assertFalse($rootPackageFile->hasPathMappings());
     }));
     $this->rootPackageFile->addPathMapping($mapping1 = new PathMapping('/app1', 'resources'));
     $this->rootPackageFile->addPathMapping($mapping2 = new PathMapping('/app2', 'resources'));
     $this->manager->clearRootPathMappings();
     $this->assertFalse($mapping1->isLoaded());
     $this->assertFalse($mapping2->isLoaded());
 }