diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-28 20:51:42 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-01-29 10:28:01 +0000 |
commit | 3f8244a841c2113be6d56944d0c108833aa9b416 (patch) | |
tree | 9664975fc06c10578e82a1c871a71b246e904360 /tests | |
parent | 4aff18170948dbe02e6c52c9d81b4941aafa9bff (diff) | |
download | nextcloud-server-3f8244a841c2113be6d56944d0c108833aa9b416.tar.gz nextcloud-server-3f8244a841c2113be6d56944d0c108833aa9b416.zip |
fix(files): Do not array access null valuebackport/50437/stable29
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/EncodingTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/EncodingTest.php b/tests/lib/Files/Storage/Wrapper/EncodingTest.php index 3f14ec64995..06f2d7d7800 100644 --- a/tests/lib/Files/Storage/Wrapper/EncodingTest.php +++ b/tests/lib/Files/Storage/Wrapper/EncodingTest.php @@ -241,4 +241,12 @@ class EncodingTest extends \Test\Files\Storage\Storage { $entry = $this->instance->getMetaData('/test/' . self::NFD_NAME); $this->assertEquals(self::NFC_NAME, $entry['name']); } + + /** + * Regression test of https://github.com/nextcloud/server/issues/50431 + */ + public function testNoMetadata() { + $this->assertNull($this->instance->getMetaData('/test/null')); + } + } |