mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'MDL-75245' of https://github.com/paulholden/moodle
This commit is contained in:
commit
96dbcc0840
21 changed files with 1437 additions and 165 deletions
|
@ -156,7 +156,6 @@ class course_test extends advanced_testcase {
|
|||
$this->assertEquals('Gregorian', $courserow['calendartype']);
|
||||
$this->assertEquals('afterburner', $courserow['theme']);
|
||||
$this->assertEquals(get_string_manager()->get_list_of_translations()['en'], $courserow['lang']);
|
||||
$this->assertEquals('dancing', $courserow['tags']);
|
||||
$expected = '<a href="https://www.example.com/moodle/course/view.php?id=' . $course1->id . '">Course 1</a>';
|
||||
$this->assertEquals($expected, $courserow['coursefullnamewithlink']);
|
||||
$expected = '<a href="https://www.example.com/moodle/course/view.php?id=' . $course1->id . '">C1</a>';
|
||||
|
@ -248,15 +247,6 @@ class course_test extends advanced_testcase {
|
|||
$this->assertEquals([
|
||||
'Course 1',
|
||||
], array_column($tablerows, 'fullname'));
|
||||
|
||||
// Filter by tags field.
|
||||
$tablerows = $this->get_report_table_rows([
|
||||
'course:tags_operator' => tags::EQUAL_TO,
|
||||
'course:tags_value' => [
|
||||
$DB->get_field('tag', 'id', ['name' => 'dancing'], MUST_EXIST),
|
||||
],
|
||||
]);
|
||||
$this->assertEquals(['Course 1'], array_column($tablerows, 'fullname'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -85,7 +85,6 @@ class user_test extends advanced_testcase {
|
|||
$this->assertEquals('Yes', $userrow['suspended']);
|
||||
$this->assertEquals('No', $userrow['confirmed']);
|
||||
$this->assertEquals('Spain', $userrow['country']);
|
||||
$this->assertEquals('dancing', $userrow['interests']);
|
||||
$this->assertEquals('Blue', $userrow['profilefield_favcolor']);
|
||||
$this->assertEquals('Time travel', $userrow['profilefield_favsuperpower']);
|
||||
}
|
||||
|
@ -230,15 +229,6 @@ class user_test extends advanced_testcase {
|
|||
$this->assertEquals([
|
||||
'Daffy Duck',
|
||||
], array_column($tablerows, 'fullname'));
|
||||
|
||||
// Filter by interests (tags) field.
|
||||
$tablerows = $this->get_report_table_rows([
|
||||
'user:interests_operator' => tags::EQUAL_TO,
|
||||
'user:interests_value' => [
|
||||
$DB->get_field('tag', 'id', ['name' => 'dancing'], MUST_EXIST),
|
||||
],
|
||||
]);
|
||||
$this->assertEquals(['Daffy Duck'], array_column($tablerows, 'fullname'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue