From 8e7372df441c3fde67b92f318fd14799fc5be97f Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Fri, 8 Apr 2022 18:03:33 +0000 Subject: [PATCH] Add comment explaining avatar basename Signed-off-by: Christopher Ng --- apps/settings/tests/UserMigration/AccountMigratorTest.php | 1 + 1 file changed, 1 insertion(+) 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 [ -- 2.39.5