public function testCorePackageAdding() { $packages = array($this->getPackage("bcn/test1", "1.0.0", "magento-module"), $this->getPackage("bcn/test2", "1.0.0", "magento-module"), $this->getPackage("bcn/test3", "1.0.0", "magento-core")); $project = new Project(); foreach ($packages as $package) { $project->addPackage($package); } $this->assertSame($packages[2], $project->getCorePackage()); }
/** * @param Project $project * @throws \Exception */ protected function buildCore(Project $project) { if (!($core = $project->getCorePackage())) { return; } if (!$project->isForce() && $this->isCoreBuilt($project)) { return; } $this->buildPackage($project, $core, $this->getStrategy('copy')); }