Skip to content

Commit

Permalink
code_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Aug 26, 2024
1 parent d2a39a6 commit 30f40c0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/enrol_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ public function test_library_functions(): void {
$this->assertEquals($icons[0]->attributes['title'], 'After completing course: Test course 1');
$icons = $this->plugin->get_action_icons($this->instance);
$this->assertCount(2, $icons);
$this->assertStringContainsString('icon fa fa-cog fa-fw iconsmall', $icons[0]);
$this->assertStringContainsString('icon fa fa-user-plus fa-fw iconsmall', $icons[1]);
$this->assertStringContainsString('fa-fw iconsmall', $icons[0]);
$this->assertStringContainsString('fa-fw iconsmall', $icons[1]);
$this->assertStringContainsString(
'<a href="https://www.example.com/moodle/enrol/editinstance.php?courseid=' . $this->course2->id,
$icons[0]
Expand Down Expand Up @@ -459,10 +459,7 @@ public function test_form(): void {
'Enddate',
];
foreach ($arr as $value) {
$this->assertStringContainsString(
'<iclass="iconfafa-question-circletext-infofa-fw"title="Helpwith' . $value . '"role="img"',
$cleaned
);
$this->assertStringContainsString('title="Helpwith' . $value . '"role="img"', $cleaned);
}
$strm = get_string_manager();
$arr = ['compcourse', 'customwelcome', 'enrolenddate', 'enrolstartdate', 'group'];
Expand Down

0 comments on commit 30f40c0

Please sign in to comment.