diff --git a/tests/upload_ingest_with_configpanel_test.php b/tests/upload_ingest_with_configpanel_test.php index 3087cda3..a3038e01 100644 --- a/tests/upload_ingest_with_configpanel_test.php +++ b/tests/upload_ingest_with_configpanel_test.php @@ -124,6 +124,9 @@ public function test_upload_ingest_configpanel(): void { $options->presenter = $file ? $file->get_itemid() : ''; $options->presentation = $file ? $file->get_itemid() : ''; + apibridge::set_testing(false); + $apibridge = apibridge::get_instance(1, true); + // Workflow configuration helper assertions. $wfconfighelper = workflowconfiguration_helper::get_instance(1); $this->assertTrue($wfconfighelper->can_provide_configuration_panel()); @@ -148,9 +151,6 @@ public function test_upload_ingest_configpanel(): void { $jobs = $DB->get_records('block_opencast_uploadjob'); $this->assertCount(1, $jobs); - apibridge::set_testing(false); - $apibridge = apibridge::get_instance(1, true); - $uploadhelper = new upload_helper(); $isuploaded = false; $limiter = 5;