Skip to content

Commit

Permalink
Dev: Make sure all users can preview surveys in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Dec 12, 2017
1 parent 8266c46 commit 59ad743
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/TestBaseClassWeb.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public static function setUpBeforeClass()

// Implicit timout so we don't have to wait manually.
self::$webDriver->manage()->timeouts()->implicitlyWait(5);

// Anyone can preview surveys.
self::$testHelper->enablePreview();
}

public static function tearDownAfterClass()
Expand Down
4 changes: 2 additions & 2 deletions tests/controllers/InstallationControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ public function testBasic()
$dbuser = getenv('DBUSER');
if (!$dbuser) {
$dbuser = 'root';
echo 'Default to database user "root".' . PHP_EOL;
echo 'Default to database user "root". Use DBUSER=... from command-line to override this.' . PHP_EOL;
}
$dbpwd = getenv('DBPASSWORD');
if (!$dbpwd) {
$dbpwd = '';
echo 'Default to empty database password.' . PHP_EOL;
echo 'Default to empty database password. Use DBPASSWORD=... from command-line to override this.' . PHP_EOL;
}

if (file_exists($configFile)) {
Expand Down

0 comments on commit 59ad743

Please sign in to comment.