/** * Upgrade Magento via Magento Connect Manager. * * @param AssertChannelTextPresent $assertChannelTextPresent * @param User $adminUser * @param Connect $connect * @return array */ public function test(AssertChannelTextPresent $assertChannelTextPresent, User $adminUser, Connect $connect) { $this->connectManagerPage->open(); $this->connectManagerPage->getConnectLogin()->loginToConnectManager($adminUser); $assertChannelTextPresent->processAssert($this->connectManagerPage); $this->connectManagerPage->getConnectContent()->checkForUpgrades(); $this->connectManagerPage->getConnectContent()->selectPackages($connect); $this->connectManagerPage->getConnectContent()->commitChanges(); }