diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-28 10:35:19 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-28 10:35:19 +0100 |
commit | 578af46a026e76ac0163725c9d809b781b0e07bf (patch) | |
tree | f9d34e30c979658c2d0326e4fd5565cc31b2bffa | |
parent | 701a15889ed1dc8362ced87c5a5ec9e16c3ffe3d (diff) | |
download | nextcloud-server-fix/encoding-wrapper-scanner.tar.gz nextcloud-server-fix/encoding-wrapper-scanner.zip |
fixup! fixup! fixup! fix: Harden files scanner for invalid null accessfix/encoding-wrapper-scanner
-rw-r--r-- | tests/lib/Files/ObjectStore/ObjectStoreScannerTest.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/lib/Files/ObjectStore/ObjectStoreScannerTest.php b/tests/lib/Files/ObjectStore/ObjectStoreScannerTest.php index 4f6254cdb94..11c913cd232 100644 --- a/tests/lib/Files/ObjectStore/ObjectStoreScannerTest.php +++ b/tests/lib/Files/ObjectStore/ObjectStoreScannerTest.php @@ -35,9 +35,7 @@ class ObjectStoreScannerTest extends TestCase { $data = "dummy file data\n"; $this->storage->file_put_contents('foo.txt', $data); - $this->assertEquals( - [], - $this->scanner->scanFile('foo.txt'), + $this->assertNull($this->scanner->scanFile('foo.txt'), 'Asserting that no error occurred while scanFile()' ); } @@ -54,8 +52,7 @@ class ObjectStoreScannerTest extends TestCase { public function testFolder(): void { $this->fillTestFolders(); - $this->assertEquals( - [], + $this->assertNull( $this->scanner->scan(''), 'Asserting that no error occurred while scan()' ); |