Permalink
Browse files

Fix doInstall for PHP strict error

  • Loading branch information...
1 parent 1f01c7f commit 5f7e21ddd74fff6863d69199b284320dd9b87073 @dextercowley dextercowley committed May 3, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 tests/CHANGELOG
  2. +2 −2 tests/system/suite/doInstall.php
View
@@ -28,6 +28,7 @@ $ -> Language fix or change
02-May-2012 Mark Dexter
^ Change system test suite to work with PHPUnit version 3.6
+ # Fix doInstall for PHP strict error
12-Apr-2012 Mark Dexter
# Fix hard-coded version number in system test
@@ -28,7 +28,7 @@ function testDoInstall()
echo "Page through screen 1\n";
$this->open($cfg->path ."/installation/index.php");
$this->select("id=jform_language", "label=English (United Kingdom)");
-
+
$this->click("//a[@rel=\"next\"]");
$this->waitforElement("//h3[contains(text(), 'Recommended settings')]");
@@ -96,7 +96,7 @@ function testDoInstall()
$this->setCache($cfg->cache);
// Check admin template -- change to hathor if specified in config file
- if ($cfg->adminTemplate == 'hathor') {
+ if (isset($cfg->adminTemplate) && $cfg->adminTemplate == 'hathor') {
$this->click("link=Template Manager");
$this->waitForPageToLoad("30000");
$this->click("link=Hathor - Default");

0 comments on commit 5f7e21d

Please sign in to comment.