diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-01 15:07:53 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-01 15:07:53 +0200 |
commit | cb271b759e27c4c26c0e60b7503350682aca33eb (patch) | |
tree | 8abf40b337b3f195a8bee32e02851a1e430c8c0a /tests/lib/Metadata | |
parent | f74e89bde5892a68500eeea3fa98a511b1d7f7e9 (diff) | |
download | nextcloud-server-cb271b759e27c4c26c0e60b7503350682aca33eb.tar.gz nextcloud-server-cb271b759e27c4c26c0e60b7503350682aca33eb.zip |
Fix dynamic property creations in test files
This fixes warnings in PHP 8.2
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/Metadata')
-rw-r--r-- | tests/lib/Metadata/FileMetadataMapperTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/Metadata/FileMetadataMapperTest.php b/tests/lib/Metadata/FileMetadataMapperTest.php index 8e385351be2..1a005f24b8a 100644 --- a/tests/lib/Metadata/FileMetadataMapperTest.php +++ b/tests/lib/Metadata/FileMetadataMapperTest.php @@ -24,6 +24,7 @@ namespace Test\Metadata; use OC\Metadata\FileMetadataMapper; use OC\Metadata\FileMetadata; +use PHPUnit\Framework\MockObject\MockObject; /** * @group DB @@ -33,9 +34,12 @@ class FileMetadataMapperTest extends \Test\TestCase { /** @var IDBConnection */ protected $connection; - /** @var SystemConfig|\PHPUnit\Framework\MockObject\MockObject */ + /** @var SystemConfig|MockObject */ protected $config; + /** @var FileMetadataMapper|MockObject */ + protected $mapper; + protected function setUp(): void { parent::setUp(); |