Ejemplo n.º 1
0
 public function testRun()
 {
     $app = $this->getApp();
     $action = new InstallPackage($app);
     $result = $action->execute();
     $this->assertEquals(0, $result);
 }
Ejemplo n.º 2
0
 /**
  * Install configured packages.
  *
  * @return integer 0 on success or a positive error code on failure
  */
 public function installPackages()
 {
     if (!$this->install) {
         $this->install = new InstallPackage($this->app);
     }
     // 0 on success or a positive error code on failure
     return $this->install->execute();
 }