diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-04-08 18:03:33 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-04-08 18:03:33 +0000 |
commit | 8e7372df441c3fde67b92f318fd14799fc5be97f (patch) | |
tree | 5e320c7340e18a80535244861b92249550953cde | |
parent | 6e62c3ddc57b3b84f6dad9d9e90302724565f102 (diff) | |
download | nextcloud-server-8e7372df441c3fde67b92f318fd14799fc5be97f.tar.gz nextcloud-server-8e7372df441c3fde67b92f318fd14799fc5be97f.zip |
Add comment explaining avatar basename
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r-- | apps/settings/tests/UserMigration/AccountMigratorTest.php | 1 |
1 files changed, 1 insertions, 0 deletions
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 [ |