public function testExtensionDependedToOtherExtension()
 {
     $migration = new MigrationWithTestExtensionDepended();
     $otherExtension = new TestExtension();
     $extension = new TestExtensionDepended();
     $manager = new MigrationExtensionManager();
     $manager->addExtension('test', $extension);
     $manager->addExtension('other', $otherExtension);
     $manager->applyExtensions($migration);
     $this->assertSame($extension, $migration->getTestExtensionDepended());
     $this->assertSame($otherExtension, $migration->getTestExtensionDepended()->getTestExtension());
 }
 /**
  * Sets extensions for the given migration
  *
  * @param Migration $migration
  */
 protected function setExtensions(Migration $migration)
 {
     if ($this->extensionManager) {
         $this->extensionManager->applyExtensions($migration);
     }
 }