public function testUpdateCheck() { $app = $this->getApp(); $action = new RequirePackage($app); $action->execute(array('name' => 'gawain/clippy', 'version' => '~2.0')); $action = new CheckPackage($app); $result = $action->execute(); $this->assertTrue(is_array($result['updates'])); }
/** * Check for packages that need to be installed or updated. * * @return array */ public function checkPackage() { if (!$this->check) { $this->check = new CheckPackage($this->app); } return $this->check->execute(); }