Ejemplo n.º 1
0
 /**
  * Sets extensions for the given migration
  *
  * @param Migration $migration
  */
 protected function setExtensions(Migration $migration)
 {
     if ($this->extensionManager) {
         $this->extensionManager->applyExtensions($migration);
     }
 }
 public function testExtensionWithInvalidAwareInterface()
 {
     $dir = 'Oro\\Bundle\\MigrationBundle\\Tests\\Unit\\Migration\\Fixtures\\Extension';
     $this->setExpectedException('\\RuntimeException', sprintf('The method "%s\\InvalidAwareInterfaceExtensionAwareInterface::setInvalidAwareInterfaceExtension"' . ' was not found.', $dir));
     $manager = new MigrationExtensionManager();
     $manager->addExtension('test', new InvalidAwareInterfaceExtension());
 }