Skip to content

Commit

Permalink
MDL-77611 tool_uploaduser: fix phpunit assumptions about profile fields
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Mar 13, 2023
1 parent 0fae900 commit 9cf3795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/tool/uploaduser/tests/cli_test.php
Expand Up @@ -143,7 +143,8 @@ public function test_upload_with_profile_fields() {
// Created users have data in the profile fields.
$user1 = \core_user::get_user_by_username('reznort');
$profilefields1 = profile_user_record($user1->id);
$this->assertEquals((object)['superfield' => 'Loves cats'], $profilefields1);
$this->assertObjectHasAttribute('superfield', $profilefields1);
$this->assertEquals('Loves cats', $profilefields1->superfield);
}

/**
Expand Down

0 comments on commit 9cf3795

Please sign in to comment.