]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add comment explaining avatar basename 31866/head
authorChristopher Ng <chrng8@gmail.com>
Fri, 8 Apr 2022 18:03:33 +0000 (18:03 +0000)
committerChristopher Ng <chrng8@gmail.com>
Fri, 8 Apr 2022 18:03:33 +0000 (18:03 +0000)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
apps/settings/tests/UserMigration/AccountMigratorTest.php

index 051af68017c5b40b9f3005611ff7b29edd6b2ce3..045a0cf3ded1a63c94cc3e09621d9f7381d69341 100644 (file)
@@ -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 [