/** * @expectedException \Sp\BowerBundle\Bower\Exception\InvalidMappingException */ public function testCreateDependencyMappingCacheWithInvalidMapping() { $configDir = "/config_dir"; $config = new Configuration($configDir); $config->setCache($this->cache); $this->processBuilder->expects($this->once())->method('getProcess')->will($this->returnValue($this->process)); $this->process->expects($this->once())->method('isSuccessful')->will($this->returnValue(true)); $this->cache->expects($this->never())->method('save'); $this->bower->createDependencyMappingCache($config); }
/** * @param \Sp\BowerBundle\Bower\Event\BowerEvent $event */ public function onPostInstall(BowerEvent $event) { $this->bower->createDependencyMappingCache($event->getConfiguration()); }