public function testRun() { $app = $this->getApp(); $action = new UpdatePackage($app); $result = $action->execute(); $this->assertEquals(0, $result); }
/** * Update packages in the root install. * * @param $packages array Indexed array of package names to update * * @return integer 0 on success or a positive error code on failure */ public function updatePackage(array $packages) { if (!$this->update) { $this->update = new UpdatePackage($this->app); } // 0 on success or a positive error code on failure return $this->update->execute($packages); }