aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-11 21:28:36 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-11 22:18:34 +0200
commit517354580d4a31e559e27be8a1ef165d17b33d9e (patch)
tree031836b089cbd8b93f54edc3512025ce0b03d21e /tests
parentb9f820d828ff517c952971ece649ef8e28c74bd2 (diff)
downloadnextcloud-server-517354580d4a31e559e27be8a1ef165d17b33d9e.tar.gz
nextcloud-server-517354580d4a31e559e27be8a1ef165d17b33d9e.zip
remove ctime tests for filestorage, ctime will be removed from the storage api in the future
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/filestorage.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/lib/filestorage.php b/tests/lib/filestorage.php
index d1f70e87091..9c6e3f6b8c1 100644
--- a/tests/lib/filestorage.php
+++ b/tests/lib/filestorage.php
@@ -156,12 +156,7 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->instance->file_put_contents('/lorem.txt', file_get_contents($textFile));
$this->assertTrue($this->instance->isReadable('/lorem.txt'));
$ctimeEnd = time();
- $cTime = $this->instance->filectime('/lorem.txt');
$mTime = $this->instance->filemtime('/lorem.txt');
- if ($cTime != -1) { //not everything can support ctime
- $this->assertTrue(($ctimeStart - 1) <= $cTime);
- $this->assertTrue($cTime <= ($ctimeEnd + 1));
- }
$this->assertTrue($this->instance->hasUpdated('/lorem.txt', $ctimeStart - 1));
$this->assertTrue($this->instance->hasUpdated('/', $ctimeStart - 1));
@@ -170,17 +165,15 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->assertEqual(filesize($textFile), $this->instance->filesize('/lorem.txt'));
$stat = $this->instance->stat('/lorem.txt');
- //only size, mtime and ctime are requered in the result
+ //only size and mtime are requered in the result
$this->assertEqual($stat['size'], $this->instance->filesize('/lorem.txt'));
$this->assertEqual($stat['mtime'], $mTime);
- $this->assertEqual($stat['ctime'], $cTime);
$mtimeStart = time();
$supportsTouch = $this->instance->touch('/lorem.txt');
$mtimeEnd = time();
if ($supportsTouch !== false) {
$originalCTime = $cTime;
- $cTime = $this->instance->filectime('/lorem.txt');
$mTime = $this->instance->filemtime('/lorem.txt');
$this->assertTrue(($mtimeStart - 1) <= $mTime);
$this->assertTrue($mTime <= ($mtimeEnd + 1));