summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Cache
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Files/Cache')
-rw-r--r--tests/lib/Files/Cache/CacheTest.php3
-rw-r--r--tests/lib/Files/Cache/ScannerTest.php1
-rw-r--r--tests/lib/Files/Cache/UpdaterLegacyTest.php5
3 files changed, 3 insertions, 6 deletions
diff --git a/tests/lib/Files/Cache/CacheTest.php b/tests/lib/Files/Cache/CacheTest.php
index dff21491052..f3e61e8e820 100644
--- a/tests/lib/Files/Cache/CacheTest.php
+++ b/tests/lib/Files/Cache/CacheTest.php
@@ -182,7 +182,6 @@ class CacheTest extends \Test\TestCase {
}
public function folderDataProvider() {
-
return [
['folder'],
// that was too easy, try something harder
@@ -289,7 +288,6 @@ class CacheTest extends \Test\TestCase {
* @param $fileName
*/
public function testPutWithAllKindOfQuotes($fileName) {
-
$this->assertEquals(\OC\Files\Cache\Cache::NOT_FOUND, $this->cache->get($fileName));
$this->cache->put($fileName, ['size' => 20, 'mtime' => 25, 'mimetype' => 'foo/file', 'etag' => $fileName]);
@@ -573,7 +571,6 @@ class CacheTest extends \Test\TestCase {
* this test shows that there is no bug if we use the normalizer
*/
public function testWithNormalizer() {
-
if (!class_exists('Patchwork\PHP\Shim\Normalizer')) {
$this->markTestSkipped('The 3rdparty Normalizer extension is not available.');
return;
diff --git a/tests/lib/Files/Cache/ScannerTest.php b/tests/lib/Files/Cache/ScannerTest.php
index 52f6697cc6d..c51ce0388d5 100644
--- a/tests/lib/Files/Cache/ScannerTest.php
+++ b/tests/lib/Files/Cache/ScannerTest.php
@@ -406,5 +406,4 @@ class ScannerTest extends \Test\TestCase {
['/sub/folder/foo.txt', false],
];
}
-
}
diff --git a/tests/lib/Files/Cache/UpdaterLegacyTest.php b/tests/lib/Files/Cache/UpdaterLegacyTest.php
index 02cb6d79eb1..6d6cc08b3de 100644
--- a/tests/lib/Files/Cache/UpdaterLegacyTest.php
+++ b/tests/lib/Files/Cache/UpdaterLegacyTest.php
@@ -74,7 +74,9 @@ class UpdaterLegacyTest extends \Test\TestCase {
$result = false;
$user = \OC::$server->getUserManager()->get(self::$user);
- if ($user !== null) { $result = $user->delete(); }
+ if ($user !== null) {
+ $result = $user->delete();
+ }
$this->assertTrue($result);
$this->logout();
@@ -304,5 +306,4 @@ class UpdaterLegacyTest extends \Test\TestCase {
$this->assertNotSame($rootCachedData['etag'], $cachedData['etag']);
$this->assertEquals($time, $cachedData['mtime']);
}
-
}