Skip to content

Commit

Permalink
DEV: restructure tests: fix static paths
Browse files Browse the repository at this point in the history
# Conflicts:
#	tests/TestHelper.php
  • Loading branch information
TonisOrmisson committed Jan 9, 2018
1 parent c1ca2e0 commit 96a876d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/TestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function updateDbFromVersion($version, $connection = null)
$inst->connection = $connection;

// Check SQL file.
$file = __DIR__ . '/data/sql/create-mysql.' . $version . '.sql';
$file = TestBaseClass::getDataFolder() . '/sql/create-mysql.' . $version . '.sql';
$this->assertFileExists($file, 'SQL file exists: ' . $file);

// Run SQL install file.
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/GroupRandomizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function setupBeforeClass()

\Yii::app()->session['loginID'] = 1;

$surveyFile = __DIR__ . '/../data/surveys/limesurvey_survey_88881.lss';
$surveyFile = self::getSurveysFolder() . '/limesurvey_survey_88881.lss';
if (!file_exists($surveyFile)) {
echo 'Fatal error: found no survey file';
exit(4);
Expand Down

0 comments on commit 96a876d

Please sign in to comment.