Skip to content

Commit 72ff218

Browse files
tests(checker): make JSON decoding match implementation
Signed-off-by: Josh <[email protected]>
1 parent 4eafa0b commit 72ff218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lib/IntegrityCheck/CheckerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ public function testVerifyCoreSignatureWithValidModifiedHtaccessSignatureData():
545545
*/
546546
public function testVerifyCoreSignatureWithModifiedMimetypelistSignatureData(): void {
547547
$this->addTypicalStubs();
548-
$shippedMimetypeAliases = (array)json_decode(file_get_contents(\OC::$SERVERROOT . '/resources/config/mimetypealiases.dist.json'));
549-
$shippedMimetypeNames = (array)json_decode(file_get_contents(\OC::$SERVERROOT . '/resources/config/mimetypenames.dist.json'));
548+
$shippedMimetypeAliases = (array)json_decode(file_get_contents(\OC::$SERVERROOT . '/resources/config/mimetypealiases.dist.json'), true);
549+
$shippedMimetypeNames = (array)json_decode(file_get_contents(\OC::$SERVERROOT . '/resources/config/mimetypenames.dist.json'), true);
550550
$allAliases = array_merge($shippedMimetypeAliases, ['my-custom/mimetype' => 'custom']);
551551
$allMimetypeNames = array_merge($shippedMimetypeNames, ['my-custom/mimetype' => 'Custom Document']);
552552

0 commit comments

Comments
 (0)