/** * Tests all the getters. * * @dataProvider patchEventDataProvider */ public function testGetters($event_name, PackageInterface $package, $url, $description) { $patch_event = new PatchEvent($event_name, $package, $url, $description); $this->assertEquals($event_name, $patch_event->getName()); $this->assertEquals($package, $patch_event->getPackage()); $this->assertEquals($url, $patch_event->getUrl()); $this->assertEquals($description, $patch_event->getDescription()); }
public function afterPatch(PatchEvent $event) { $package = $event->getPackage(); $packageType = $package->getType(); list($packageDrupal) = explode('-', $packageType); if ($this->io->isVeryVerbose()) { $packageName = $package->getName(); $this->io->write("DrupalInstallerPlugin::afterPatch::name={$packageName}, type={$packageType}"); } if ($packageDrupal !== 'drupal') { return; } $this->afterPatchGitCommit($event, $package); }