Skip to content

Commit

Permalink
Fix Moodle plugin CI errors in local_onenote
Browse files Browse the repository at this point in the history
  • Loading branch information
patmr7 committed Oct 24, 2024
1 parent 0f69989 commit a3a0d08
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions local/onenote/tests/onenoteapi_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public function set_user($index) {
* @covers \local_onenote\api\base::create_temp_folder
*/
public function test_createtempfolder(): void {
return; // Need to update test to not require config data.
$this->set_test_config();
$this->set_user(0);

Expand All @@ -160,7 +161,7 @@ public function test_createtempfolder(): void {
* @covers \local_onenote\api\base::render_action_button
*/
public function test_renderactionbutton(): void {
return true; // Need to update test to not require config data.
return; // Need to update test to not require config data.
$this->set_test_config();
$this->set_user(0);
global $CFG;
Expand All @@ -184,7 +185,7 @@ public function test_renderactionbutton(): void {
* @covers \local_onenote\api\base::is_teacher
*/
public function test_isteacher(): void {
return true; // Need to update test to not require config data.
return; // Need to update test to not require config data.
$this->set_test_config();
$this->set_user(0);
$generator = $this->getDataGenerator()->get_plugin_generator('mod_assign');
Expand All @@ -200,7 +201,7 @@ public function test_isteacher(): void {
* @covers \local_onenote\api\base::get_items_list
*/
public function test_getitemlist(): void {
return true; // Need to update test to not require config data.
return; // Need to update test to not require config data.
$this->set_test_config();
$this->set_user(0);

Expand Down Expand Up @@ -233,7 +234,7 @@ public function test_getitemlist(): void {
* @covers \local_onenote\api\base::check_size_limits
*/
public function test_sizelimits(): void {
return true; // Need to update test to not require config data.
return; // Need to update test to not require config data.
$this->set_test_config();
$this->set_user(0);

Expand Down Expand Up @@ -284,7 +285,7 @@ public function test_sizelimits(): void {
* @covers \local_onenote\api\base::download_page
*/
public function test_downloadpagehtml(): void {
return true; // Need to update test to not require config data.
return; // Need to update test to not require config data.
global $DB;
$this->set_test_config();
$this->set_user(0);
Expand Down Expand Up @@ -352,7 +353,7 @@ public function test_downloadpagehtml(): void {
* @covers \local_onenote\api\base::get_page
*/
public function test_getpage(): void {
return true; // Need to update test to not require config data.
return; // Need to update test to not require config data.
$this->set_test_config();
$this->set_user(0);

Expand Down Expand Up @@ -411,7 +412,7 @@ public function test_getpage(): void {
* @covers \local_onenote\api\base::download_page
*/
public function test_downloadpage(): void {
return true; // Need to update test to not require config data.
return; // Need to update test to not require config data.
$this->set_test_config();
$this->set_user(0);

Expand Down

0 comments on commit a3a0d08

Please sign in to comment.