From: Christopher Ng Date: Fri, 8 Apr 2022 18:03:33 +0000 (+0000) Subject: Add comment explaining avatar basename X-Git-Tag: v24.0.0rc1~27^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8e7372df441c3fde67b92f318fd14799fc5be97f;p=nextcloud-server.git Add comment explaining avatar basename Signed-off-by: Christopher Ng --- diff --git a/apps/settings/tests/UserMigration/AccountMigratorTest.php b/apps/settings/tests/UserMigration/AccountMigratorTest.php index 051af68017c..045a0cf3ded 100644 --- a/apps/settings/tests/UserMigration/AccountMigratorTest.php +++ b/apps/settings/tests/UserMigration/AccountMigratorTest.php @@ -82,6 +82,7 @@ class AccountMigratorTest extends TestCase { return array_map( function (string $filename) { $dataPath = self::ASSETS_DIR . $filename; + // For each json file there is an avatar image with the same basename $avatarBasename = pathinfo($filename, PATHINFO_FILENAME); $avatarPath = self::ASSETS_DIR . (file_exists(self::ASSETS_DIR . "$avatarBasename.jpg") ? "$avatarBasename.jpg" : "$avatarBasename.png"); return [