Skip to content

Commit

Permalink
adjust the sequece where to init an apibridge instance to cover wfcon…
Browse files Browse the repository at this point in the history
…fig helper class as well
  • Loading branch information
ferishili committed Sep 30, 2024
1 parent 6958fdc commit 579d0e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/upload_ingest_with_configpanel_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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;
Expand Down

0 comments on commit 579d0e2

Please sign in to comment.