Skip to content

Commit

Permalink
Dev: Do at least one assert in installation test; missing import in test
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed May 21, 2019
1 parent 174eee1 commit 8a0cf61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/controllers/InstallationControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public function testBasic()
$urlMan = \Yii::app()->urlManager;
$urlMan->setBaseUrl('http://' . self::$domain . '/index.php');
$url = $urlMan->createUrl('');
\Yii::import('application.helpers.common_helper', true);
$installerForm = new \InstallerConfigForm();
$installerForm->dbtype = \InstallerConfigForm::DB_TYPE_MYSQL;

Expand Down Expand Up @@ -171,6 +172,8 @@ public function testBasic()

// Login.
self::adminLogin($username, $password);

$this->assertTrue(true, 'We made it!');
} catch (NoSuchElementException $ex) {
self::$testHelper->takeScreenshot(self::$webDriver, (new \ReflectionClass($this))->getShortName() . '_' . __FUNCTION__);
$this->assertFalse(
Expand Down

0 comments on commit 8a0cf61

Please sign in to comment.