Skip to content

Commit

Permalink
Fixed some testing warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-milette committed Apr 14, 2024
1 parent ec7cc71 commit 2944e00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4529,7 +4529,6 @@ function ($matches) use ($mycohorts) {
}
}


if (strpos($text, '{ifmin') !== false) { // If there are conditional ifmin tags.
// Tag: {ifminassistant}...{/ifminassistant}.
// Description: Display content only if user has the role of a non-editing teacher or higher.
Expand Down
6 changes: 4 additions & 2 deletions tests/filter_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @copyright 2017-2024 TNG Consulting Inc. - www.tngconsulting.ca
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class filter_test extends \advanced_testcase {
final class filter_test extends \advanced_testcase {
/**
* Setup the test framework
*
Expand All @@ -59,9 +59,11 @@ public function setUp(): void {
/**
* Filter test.
*
* @covers \filter_filtercodes
*
* @return void
*/
public function test_filtercodes() {
public function test_filtercodes(): void {
global $CFG, $USER, $DB, $PAGE;

// Create a test course.
Expand Down

0 comments on commit 2944e00

Please sign in to comment.