Skip to content

Commit 263289e

Browse files
author
Nils Langner
committed
changed writing permissions
1 parent 0b887f5 commit 263289e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ before_script:
1111
- cd test/integration/
1212

1313

14-
script: php codecept.phar run -d
14+
script: php codecept.phar run -d

module/VisualCeption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private function getScreenshotPath ($identifier)
118118
$debugDir = \Codeception\Configuration::logDir() . 'debug/tmp/';
119119
if (! is_dir($debugDir)) {
120120
$this->debug("Creating directory: $debugDir");
121-
mkdir($debugDir, 0666, true);
121+
mkdir($debugDir, 0777, true);
122122
}
123123
return $debugDir . $this->getScreenshotName($identifier);
124124
}

test/integration/tests/acceptance/TimeComparisonCest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ class TimeComparisonCest
99
public function compareTimeString (WebGuy $I, $scenario)
1010
{
1111
$I->amOnPage("/VisualCeption/time.php");
12+
13+
// the test has to be called twice for comparison on the travis server
14+
$I->compareScreenshot("the-time", "#thetime");
1215
$I->compareScreenshot("the-time", "#thetime");
1316
}
1417
}

0 commit comments

Comments
 (0)