From 30f40c019e2d08a97f1d2451c5adcc61b273799f Mon Sep 17 00:00:00 2001 From: Renaat Debleu Date: Mon, 26 Aug 2024 02:15:16 +0000 Subject: [PATCH] code_fix --- tests/enrol_test.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/enrol_test.php b/tests/enrol_test.php index 9f33d4b..ceb5b9a 100644 --- a/tests/enrol_test.php +++ b/tests/enrol_test.php @@ -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( 'assertStringContainsString('title="Helpwith' . $value . '"role="img"', $cleaned); } $strm = get_string_manager(); $arr = ['compcourse', 'customwelcome', 'enrolenddate', 'enrolstartdate', 'group'];