Windows does not support CHMOD, therefor we can not test not writable folders
This commit is contained in:
parent
f2282e4251
commit
a9c2e5a08e
|
@ -122,6 +122,10 @@ class TempManager extends \PHPUnit_Framework_TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testLogCantCreateFile() {
|
public function testLogCantCreateFile() {
|
||||||
|
if (\OC_Util::runningOnWindows()) {
|
||||||
|
$this->markTestSkipped('[Windows] chmod() does not work as intended on Windows.');
|
||||||
|
}
|
||||||
|
|
||||||
$logger = $this->getMock('\Test\NullLogger');
|
$logger = $this->getMock('\Test\NullLogger');
|
||||||
$manager = $this->getManager($logger);
|
$manager = $this->getManager($logger);
|
||||||
chmod($this->baseDir, 0500);
|
chmod($this->baseDir, 0500);
|
||||||
|
@ -132,6 +136,10 @@ class TempManager extends \PHPUnit_Framework_TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testLogCantCreateFolder() {
|
public function testLogCantCreateFolder() {
|
||||||
|
if (\OC_Util::runningOnWindows()) {
|
||||||
|
$this->markTestSkipped('[Windows] chmod() does not work as intended on Windows.');
|
||||||
|
}
|
||||||
|
|
||||||
$logger = $this->getMock('\Test\NullLogger');
|
$logger = $this->getMock('\Test\NullLogger');
|
||||||
$manager = $this->getManager($logger);
|
$manager = $this->getManager($logger);
|
||||||
chmod($this->baseDir, 0500);
|
chmod($this->baseDir, 0500);
|
||||||
|
|
|
@ -138,6 +138,10 @@ class Test_Util_CheckServer extends PHPUnit_Framework_TestCase {
|
||||||
* Tests an error is given when the datadir is not writable
|
* Tests an error is given when the datadir is not writable
|
||||||
*/
|
*/
|
||||||
public function testDataDirNotWritable() {
|
public function testDataDirNotWritable() {
|
||||||
|
if (\OC_Util::runningOnWindows()) {
|
||||||
|
$this->markTestSkipped('[Windows] chmod() does not work as intended on Windows.');
|
||||||
|
}
|
||||||
|
|
||||||
chmod($this->datadir, 0300);
|
chmod($this->datadir, 0300);
|
||||||
$result = \OC_Util::checkServer($this->getConfig(array(
|
$result = \OC_Util::checkServer($this->getConfig(array(
|
||||||
'installed' => true,
|
'installed' => true,
|
||||||
|
|
Loading…
Reference in New Issue