diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-28 20:51:42 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-28 20:51:42 +0100 |
commit | 67e0ef5b72ecfa92bdee0808fc12a809e9e17980 (patch) | |
tree | f729ed9159c816cb176133a24bc08d0098fe2db7 /tests | |
parent | 54a1a560bd92786831875d3002937a4742e73e8a (diff) | |
download | nextcloud-server-fix/encoding-wrapper-scanner-stable30.tar.gz nextcloud-server-fix/encoding-wrapper-scanner-stable30.zip |
fix(files): Do not array access null valuefix/encoding-wrapper-scanner-stable30
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 ae6a6ece742..b50d6f985f1 100644 --- a/tests/lib/Files/Storage/Wrapper/EncodingTest.php +++ b/tests/lib/Files/Storage/Wrapper/EncodingTest.php @@ -240,4 +240,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')); + } + } |