summaryrefslogtreecommitdiffstats
path: root/tests/lib/tempmanager.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-05 16:47:27 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-10 11:05:17 +0100
commita9c2e5a08e4a909a94f441c96a3ea000e9420ca3 (patch)
treef4ba55943a5b660f180b2c52e93f3cf8a8bff5d5 /tests/lib/tempmanager.php
parentf2282e4251585761500a319c10d697e9a1900444 (diff)
downloadnextcloud-server-a9c2e5a08e4a909a94f441c96a3ea000e9420ca3.tar.gz
nextcloud-server-a9c2e5a08e4a909a94f441c96a3ea000e9420ca3.zip
Windows does not support CHMOD, therefor we can not test not writable folders
Diffstat (limited to 'tests/lib/tempmanager.php')
-rw-r--r--tests/lib/tempmanager.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/tempmanager.php b/tests/lib/tempmanager.php
index f16fbce2c7c..85b94094393 100644
--- a/tests/lib/tempmanager.php
+++ b/tests/lib/tempmanager.php
@@ -122,6 +122,10 @@ class TempManager extends \PHPUnit_Framework_TestCase {
}
public function testLogCantCreateFile() {
+ if (\OC_Util::runningOnWindows()) {
+ $this->markTestSkipped('[Windows] chmod() does not work as intended on Windows.');
+ }
+
$logger = $this->getMock('\Test\NullLogger');
$manager = $this->getManager($logger);
chmod($this->baseDir, 0500);
@@ -132,6 +136,10 @@ class TempManager extends \PHPUnit_Framework_TestCase {
}
public function testLogCantCreateFolder() {
+ if (\OC_Util::runningOnWindows()) {
+ $this->markTestSkipped('[Windows] chmod() does not work as intended on Windows.');
+ }
+
$logger = $this->getMock('\Test\NullLogger');
$manager = $this->getManager($logger);
chmod($this->baseDir, 0500);