summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-04-08 18:03:33 +0000
committerChristopher Ng <chrng8@gmail.com>2022-04-08 18:03:33 +0000
commit8e7372df441c3fde67b92f318fd14799fc5be97f (patch)
tree5e320c7340e18a80535244861b92249550953cde
parent6e62c3ddc57b3b84f6dad9d9e90302724565f102 (diff)
downloadnextcloud-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.php1
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 [