diff --git a/admin/tool/usertours/pix/i/reload.svg b/admin/tool/usertours/pix/i/reload.svg index 2a3c4bb033f..372801512c8 100644 --- a/admin/tool/usertours/pix/i/reload.svg +++ b/admin/tool/usertours/pix/i/reload.svg @@ -1,3 +1,3 @@ - + ]> \ No newline at end of file diff --git a/admin/tool/usertours/pix/t/export.svg b/admin/tool/usertours/pix/t/export.svg index e1cbf431629..ccf1c97b1ba 100644 --- a/admin/tool/usertours/pix/t/export.svg +++ b/admin/tool/usertours/pix/t/export.svg @@ -1,16 +1,16 @@ - - - -]> - - - - - + + + +]> + + + + + diff --git a/admin/tool/usertours/pix/t/filler.svg b/admin/tool/usertours/pix/t/filler.svg index f5c3e5515c7..576dd98fd2b 100644 --- a/admin/tool/usertours/pix/t/filler.svg +++ b/admin/tool/usertours/pix/t/filler.svg @@ -1,12 +1,12 @@ - - - -]> - - - - + + + +]> + + + + diff --git a/admin/tool/usertours/tests/role_filter_test.php b/admin/tool/usertours/tests/role_filter_test.php index a27d6f0de75..ade49dda885 100644 --- a/admin/tool/usertours/tests/role_filter_test.php +++ b/admin/tool/usertours/tests/role_filter_test.php @@ -77,11 +77,11 @@ class tool_usertours_role_filter_testcase extends advanced_testcase { /** * Test the filter_matches function when any is set. */ - public function test_filter_matches_any() { + public function test_filter_matches_any() { $context = \context_course::instance($this->course->id); - // Note: No need to persist this tour. - $tour = new \tool_usertours\tour(); + // Note: No need to persist this tour. + $tour = new \tool_usertours\tour(); $tour->set_filter_values('role', []); // Note: The role filter does not use the context. @@ -93,20 +93,20 @@ class tool_usertours_role_filter_testcase extends advanced_testcase { // The admin should always be able to view too. $this->setAdminUser(); $this->assertTrue(\tool_usertours\local\filter\role::filter_matches($tour, $context)); - } + } /** * Test the filter_matches function when one role is set. */ - public function test_filter_matches_single_role() { + public function test_filter_matches_single_role() { $context = \context_course::instance($this->course->id); $roles = [ $this->roles['student'], ]; - // Note: No need to persist this tour. - $tour = new \tool_usertours\tour(); + // Note: No need to persist this tour. + $tour = new \tool_usertours\tour(); $tour->set_filter_values('role', $roles); // Note: The role filter does not use the context. @@ -122,12 +122,12 @@ class tool_usertours_role_filter_testcase extends advanced_testcase { // The admin should always be able to view too. $this->setAdminUser(); $this->assertTrue(\tool_usertours\local\filter\role::filter_matches($tour, $context)); - } + } /** * Test the filter_matches function when multiple roles are set. */ - public function test_filter_matches_multiple_role() { + public function test_filter_matches_multiple_role() { $context = \context_course::instance($this->course->id); $roles = [ @@ -135,8 +135,8 @@ class tool_usertours_role_filter_testcase extends advanced_testcase { $this->roles['editingteacher'], ]; - // Note: No need to persist this tour. - $tour = new \tool_usertours\tour(); + // Note: No need to persist this tour. + $tour = new \tool_usertours\tour(); $tour->set_filter_values('role', $roles); // Note: The role filter does not use the context. @@ -152,12 +152,12 @@ class tool_usertours_role_filter_testcase extends advanced_testcase { // The admin should always be able to view too. $this->setAdminUser(); $this->assertTrue(\tool_usertours\local\filter\role::filter_matches($tour, $context)); - } + } /** * Test the filter_matches function when one user has multiple roles. */ - public function test_filter_matches_multiple_role_one_user() { + public function test_filter_matches_multiple_role_one_user() { $context = \context_course::instance($this->course->id); $roles = [ @@ -166,8 +166,8 @@ class tool_usertours_role_filter_testcase extends advanced_testcase { $this->getDataGenerator()->enrol_user($this->student->id, $this->course->id, $this->roles['teacher']); - // Note: No need to persist this tour. - $tour = new \tool_usertours\tour(); + // Note: No need to persist this tour. + $tour = new \tool_usertours\tour(); $tour->set_filter_values('role', $roles); @@ -184,5 +184,5 @@ class tool_usertours_role_filter_testcase extends advanced_testcase { // The admin should always be able to view too. $this->setAdminUser(); $this->assertTrue(\tool_usertours\local\filter\role::filter_matches($tour, $context)); - } + } }