diff options
Diffstat (limited to 'tests/lib/Files')
-rw-r--r-- | tests/lib/Files/Cache/WatcherTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/Mount/ObjectHomeMountProviderTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/Mount/ObjectStorePreviewCacheMountProviderTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/ObjectStore/MapperTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/ObjectStore/ObjectStoreTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/PathVerificationTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/AvailabilityTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/EncryptionTest.php | 31 | ||||
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/JailTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/PermissionsMaskTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/Stream/DummyEncryptionWrapper.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/Stream/EncryptionTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/Stream/QuotaTest.php | 1 |
13 files changed, 15 insertions, 28 deletions
diff --git a/tests/lib/Files/Cache/WatcherTest.php b/tests/lib/Files/Cache/WatcherTest.php index 42115c1c477..509b9d6ba2a 100644 --- a/tests/lib/Files/Cache/WatcherTest.php +++ b/tests/lib/Files/Cache/WatcherTest.php @@ -16,7 +16,6 @@ namespace Test\Files\Cache; * @package Test\Files\Cache */ class WatcherTest extends \Test\TestCase { - /** * @var \OC\Files\Storage\Storage[] $storages */ diff --git a/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php b/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php index 7ce87140122..e53069ee2b8 100644 --- a/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php +++ b/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php @@ -8,7 +8,6 @@ use OCP\IConfig; use OCP\IUser; class ObjectHomeMountProviderTest extends \Test\TestCase { - /** @var ObjectHomeMountProvider */ protected $provider; diff --git a/tests/lib/Files/Mount/ObjectStorePreviewCacheMountProviderTest.php b/tests/lib/Files/Mount/ObjectStorePreviewCacheMountProviderTest.php index ef2ede729ce..da9ba8bacaf 100644 --- a/tests/lib/Files/Mount/ObjectStorePreviewCacheMountProviderTest.php +++ b/tests/lib/Files/Mount/ObjectStorePreviewCacheMountProviderTest.php @@ -39,7 +39,6 @@ use Psr\Log\LoggerInterface; * The DB permission is needed for the fake root storage initialization */ class ObjectStorePreviewCacheMountProviderTest extends \Test\TestCase { - /** @var ObjectStorePreviewCacheMountProvider */ protected $provider; diff --git a/tests/lib/Files/ObjectStore/MapperTest.php b/tests/lib/Files/ObjectStore/MapperTest.php index d8427f993fe..dbe5fe5d32f 100644 --- a/tests/lib/Files/ObjectStore/MapperTest.php +++ b/tests/lib/Files/ObjectStore/MapperTest.php @@ -26,7 +26,6 @@ use OCP\IConfig; use OCP\IUser; class MapperTest extends \Test\TestCase { - /** @var IUser|\PHPUnit\Framework\MockObject\MockObject */ private $user; diff --git a/tests/lib/Files/ObjectStore/ObjectStoreTest.php b/tests/lib/Files/ObjectStore/ObjectStoreTest.php index 2333168d838..c5580e4a2bf 100644 --- a/tests/lib/Files/ObjectStore/ObjectStoreTest.php +++ b/tests/lib/Files/ObjectStore/ObjectStoreTest.php @@ -25,7 +25,6 @@ namespace Test\Files\ObjectStore; use Test\TestCase; abstract class ObjectStoreTest extends TestCase { - /** @var string[] */ private $cleanup = []; diff --git a/tests/lib/Files/PathVerificationTest.php b/tests/lib/Files/PathVerificationTest.php index 3570acfaab4..ededab14d0b 100644 --- a/tests/lib/Files/PathVerificationTest.php +++ b/tests/lib/Files/PathVerificationTest.php @@ -19,7 +19,6 @@ use OCP\Files\InvalidPathException; * @package Test\Files */ class PathVerificationTest extends \Test\TestCase { - /** * @var \OC\Files\View */ diff --git a/tests/lib/Files/Storage/Wrapper/AvailabilityTest.php b/tests/lib/Files/Storage/Wrapper/AvailabilityTest.php index f36958ad552..7d5d7d31808 100644 --- a/tests/lib/Files/Storage/Wrapper/AvailabilityTest.php +++ b/tests/lib/Files/Storage/Wrapper/AvailabilityTest.php @@ -27,7 +27,6 @@ use OC\Files\Storage\Wrapper\Availability; use OCP\Files\StorageNotAvailableException; class AvailabilityTest extends \Test\TestCase { - /** @var \PHPUnit\Framework\MockObject\MockObject|StorageCache */ protected $storageCache; /** @var \PHPUnit\Framework\MockObject\MockObject|Temporary */ diff --git a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php index ebb97a25c77..ae776e40666 100644 --- a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php +++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php @@ -24,7 +24,6 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Test\Files\Storage\Storage; class EncryptionTest extends Storage { - /** * block size will always be 8192 for a PHP stream * @see https://bugs.php.net/bug.php?id=21641 @@ -497,13 +496,13 @@ class EncryptionTest extends Storage { $this->encryptionManager->expects($this->any())->method('isEnabled')->willReturn($encryptionEnabled); $encryptionStorage = new \OC\Files\Storage\Wrapper\Encryption( - [ - 'storage' => $sourceStorage, - 'root' => 'foo', - 'mountPoint' => '/mountPoint', - 'mount' => $this->mount - ], - $this->encryptionManager, $util, $this->logger, $this->file, null, $this->keyStore, $this->update + [ + 'storage' => $sourceStorage, + 'root' => 'foo', + 'mountPoint' => '/mountPoint', + 'mount' => $this->mount + ], + $this->encryptionManager, $util, $this->logger, $this->file, null, $this->keyStore, $this->update ); @@ -712,15 +711,15 @@ class EncryptionTest extends Storage { */ public function testParseRawHeader($rawHeader, $expected) { $instance = new \OC\Files\Storage\Wrapper\Encryption( - [ - 'storage' => $this->sourceStorage, - 'root' => 'foo', - 'mountPoint' => '/', - 'mount' => $this->mount - ], - $this->encryptionManager, $this->util, $this->logger, $this->file, null, $this->keyStore, $this->update, $this->mountManager, $this->arrayCache + [ + 'storage' => $this->sourceStorage, + 'root' => 'foo', + 'mountPoint' => '/', + 'mount' => $this->mount + ], + $this->encryptionManager, $this->util, $this->logger, $this->file, null, $this->keyStore, $this->update, $this->mountManager, $this->arrayCache - ); + ); $result = $this->invokePrivate($instance, 'parseRawHeader', [$rawHeader]); $this->assertSameSize($expected, $result); diff --git a/tests/lib/Files/Storage/Wrapper/JailTest.php b/tests/lib/Files/Storage/Wrapper/JailTest.php index 6c8905af765..148bd3a4f30 100644 --- a/tests/lib/Files/Storage/Wrapper/JailTest.php +++ b/tests/lib/Files/Storage/Wrapper/JailTest.php @@ -9,7 +9,6 @@ namespace Test\Files\Storage\Wrapper; class JailTest extends \Test\Files\Storage\Storage { - /** * @var \OC\Files\Storage\Temporary */ diff --git a/tests/lib/Files/Storage/Wrapper/PermissionsMaskTest.php b/tests/lib/Files/Storage/Wrapper/PermissionsMaskTest.php index 1e69ee7165e..ea01a0e3e94 100644 --- a/tests/lib/Files/Storage/Wrapper/PermissionsMaskTest.php +++ b/tests/lib/Files/Storage/Wrapper/PermissionsMaskTest.php @@ -16,7 +16,6 @@ use OCP\Files\Cache\IScanner; * @group DB */ class PermissionsMaskTest extends \Test\Files\Storage\Storage { - /** * @var \OC\Files\Storage\Temporary */ diff --git a/tests/lib/Files/Stream/DummyEncryptionWrapper.php b/tests/lib/Files/Stream/DummyEncryptionWrapper.php index e66fae3d15d..223e8256cd2 100644 --- a/tests/lib/Files/Stream/DummyEncryptionWrapper.php +++ b/tests/lib/Files/Stream/DummyEncryptionWrapper.php @@ -22,7 +22,6 @@ namespace Test\Files\Stream; class DummyEncryptionWrapper extends \OC\Files\Stream\Encryption { - /** * simulate a non-seekable stream wrapper by always return false * diff --git a/tests/lib/Files/Stream/EncryptionTest.php b/tests/lib/Files/Stream/EncryptionTest.php index 79a845fe7a6..67311e886e8 100644 --- a/tests/lib/Files/Stream/EncryptionTest.php +++ b/tests/lib/Files/Stream/EncryptionTest.php @@ -87,7 +87,6 @@ class EncryptionTest extends \Test\TestCase { $expectedSize, $expectedUnencryptedSize, $expectedReadOnly) { - // build mocks $encryptionModuleMock = $this->getMockBuilder('\OCP\Encryption\IEncryptionModule') ->disableOriginalConstructor()->getMock(); diff --git a/tests/lib/Files/Stream/QuotaTest.php b/tests/lib/Files/Stream/QuotaTest.php index 24b0e7f9474..69cd322a2b3 100644 --- a/tests/lib/Files/Stream/QuotaTest.php +++ b/tests/lib/Files/Stream/QuotaTest.php @@ -9,7 +9,6 @@ namespace Test\Files\Stream; class QuotaTest extends \Test\TestCase { - /** * @param string $mode * @param integer $limit |