Skip to content

Commit

Permalink
Test tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Mar 28, 2024
1 parent 03c1aa9 commit 2ffec15
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/courseformatrenderer_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function test_section_summary() {

public function test_topcoll_section() {
$this->init();
set_user_preference(\format_topcoll\togglelib::TOPCOLL_TOGGLE.'_' . $this->course->id, 'Z');
set_user_preference(\format_topcoll\toolbox::TOPCOLL_TOGGLE.'_' . $this->course->id, 'Z');
set_config('defaultuserpreference', 0, 'format_topcoll');
set_config('defaulttogglepersistence', 1, 'format_topcoll');
self::set_property($this->outputus, 'formatresponsive', false);
Expand Down Expand Up @@ -431,7 +431,7 @@ public function test_multiple_section_page_horizontal() {
global $CFG;

$this->init();
set_user_preference(\format_topcoll\togglelib::TOPCOLL_TOGGLE.'_' . $this->course->id, null);
set_user_preference(\format_topcoll\toolbox::TOPCOLL_TOGGLE.'_' . $this->course->id, null);
set_config('defaultuserpreference', 0, 'format_topcoll');
set_config('defaulttogglepersistence', 1, 'format_topcoll');
$section0 = $this->courseformat->get_section(0);
Expand All @@ -454,7 +454,7 @@ public function test_multiple_section_page_vertical() {
global $CFG;

$this->init(1, 1);
set_user_preference(\format_topcoll\togglelib::TOPCOLL_TOGGLE.'_' . $this->course->id, 'Z');
set_user_preference(\format_topcoll\toolbox::TOPCOLL_TOGGLE.'_' . $this->course->id, 'Z');
set_config('defaultuserpreference', 0, 'format_topcoll');
set_config('defaulttogglepersistence', 1, 'format_topcoll');

Expand All @@ -479,7 +479,7 @@ public function test_multiple_section_page_no_sections() {
global $CFG;

$this->init(0);
set_user_preference(\format_topcoll\togglelib::TOPCOLL_TOGGLE.'_' . $this->course->id, null);
set_user_preference(\format_topcoll\toolbox::TOPCOLL_TOGGLE.'_' . $this->course->id, null);
set_config('defaultuserpreference', 0, 'format_topcoll');
set_config('defaulttogglepersistence', 1, 'format_topcoll');
$section0 = $this->courseformat->get_section(0);
Expand Down Expand Up @@ -507,7 +507,7 @@ public function test_toggle_all() {
'sctcloseall' => 'Close all topics',
'sctopenall' => 'Open all topics',
'spacer' => '<img class="icon spacer" width="1" height="1" alt="" aria-hidden="true" src="' . $CFG->wwwroot .
'/theme/image.php/boost/core/1/spacer" />',
'/theme/image.php/_s/boost/core/1/spacer" />',
'toggleallhover' => true,
'tctoggleiconsize' => 'tc-medium',
'togglepos' => 'left',
Expand All @@ -528,7 +528,7 @@ public function test_display_instructions() {
$displayinstructionscontext = [
'rtl' => false,
'spacer' => '<img class="icon spacer" width="1" height="1" alt="" aria-hidden="true" src="' . $CFG->wwwroot .
'/theme/image.php/boost/core/1/spacer" />',
'/theme/image.php/_s/boost/core/1/spacer" />',
];
$thevalue = self::call_method($this->outputus, 'render_from_template', ['format_topcoll/displayinstructions',
$displayinstructionscontext, ]);
Expand Down

0 comments on commit 2ffec15

Please sign in to comment.