From 6c6cd3178780e2c670dfebc5445b85bed54e859a Mon Sep 17 00:00:00 2001 From: ferishili Date: Tue, 17 Dec 2024 14:41:43 +0100 Subject: [PATCH] add some debug message for unit tests --- tests/upload_ingest_with_configpanel_test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/upload_ingest_with_configpanel_test.php b/tests/upload_ingest_with_configpanel_test.php index c1628f23..02d24cb2 100644 --- a/tests/upload_ingest_with_configpanel_test.php +++ b/tests/upload_ingest_with_configpanel_test.php @@ -126,9 +126,9 @@ public function test_upload_ingest_configpanel(): void { // Workflow configuration helper assertions. $wfconfighelper = workflowconfiguration_helper::get_instance(1); - $this->assertTrue($wfconfighelper->can_provide_configuration_panel()); - $this->assertNotEmpty($wfconfighelper->get_upload_workflow_configuration_panel()); - $this->assertNotEmpty($wfconfighelper->get_allowed_upload_configurations()); + $this->assertTrue($wfconfighelper->can_provide_configuration_panel(), 'Unable to provide configuration panel!'); + $this->assertNotEmpty($wfconfighelper->get_upload_workflow_configuration_panel(), 'Config panel is empty!'); + $this->assertNotEmpty($wfconfighelper->get_allowed_upload_configurations(), 'Allowed configs are empty!'); $configpanelelementmapping = ['straightToPublishing' => 'boolean']; $formdata = new stdClass();