mirror of
https://github.com/moodle/moodle.git
synced 2025-04-18 23:15:38 +02:00
MDL-77611 tool_uploaduser: fix phpunit assumptions about profile fields
This commit is contained in:
parent
5e1df25566
commit
e52dbcdef4
@ -143,7 +143,8 @@ class cli_test extends \advanced_testcase {
|
||||
// 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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user