We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 076533d commit 2949d00Copy full SHA for 2949d00
module/VisualCeption.php
@@ -62,7 +62,7 @@ private function init ()
62
63
if (! is_dir($this->referenceImageDir)) {
64
$this->debug("Creating directory: $this->referenceImageDir");
65
- mkdir($this->referenceImageDir, 0666, true);
+ mkdir($this->referenceImageDir, 0777, true);
66
}
67
68
@@ -218,6 +218,7 @@ private function compare ($identifier)
218
$expectedImagePath = $this->getExpectedScreenshotPath($identifier);
219
220
if (! file_exists($expectedImagePath)) {
221
+ $this->debug("Copying image (from $currentImagePath to $expectedImagePath");
222
copy($currentImagePath, $expectedImagePath);
223
return array (null, 0);
224
} else {
0 commit comments