| 1 | <?php |
| 2 | /* |
| 3 | +--------------------------------------------------------------------+ |
| 4 | | CiviCRM version 4.3 | |
| 5 | +--------------------------------------------------------------------+ |
| 6 | | Copyright CiviCRM LLC (c) 2004-2013 | |
| 7 | +--------------------------------------------------------------------+ |
| 8 | | This file is a part of CiviCRM. | |
| 9 | | | |
| 10 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 11 | | under the terms of the GNU Affero General Public License | |
| 12 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 13 | | | |
| 14 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 15 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 17 | | See the GNU Affero General Public License for more details. | |
| 18 | | | |
| 19 | | You should have received a copy of the GNU Affero General Public | |
| 20 | | License along with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | */ |
| 26 | |
| 27 | |
| 28 | require_once 'ReleaseTestCase.php'; |
| 29 | |
| 30 | // name of the class doesn't end with Test on purpose - this way this |
| 31 | // webtest is not picked up by the suite, since it needs to run |
| 32 | // on specially prepare sandbox |
| 33 | // more details: http://wiki.civicrm.org/confluence/display/CRMDOC40/Release+testing+script+documentation |
| 34 | class WebTest_Release_UpgradeScript extends WebTest_Release_ReleaseTestCase { |
| 35 | |
| 36 | protected function setUp() { |
| 37 | parent::setUp(); |
| 38 | } |
| 39 | |
| 40 | function testUpgrade() { |
| 41 | $this->webtestLogin(); |
| 42 | $this->open($this->settings->upgradeURL); |
| 43 | $this->waitForTextPresent("Upgrade CiviCRM to Version"); |
| 44 | $this->clickAndWait("css=input[type=submit]"); |
| 45 | |
| 46 | $this->waitForTextPresent("CiviCRM upgrade was successful."); |
| 47 | } |
| 48 | } |
| 49 | |