From 3bd09c2a4605a4c6a70a9c7c5eb46a9c14e2b0bd Mon Sep 17 00:00:00 2001 From: flack Date: Sat, 4 Jan 2025 17:31:50 +0100 Subject: [PATCH] Fix oversight --- test/midcom/services/rcs/mainTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/midcom/services/rcs/mainTest.php b/test/midcom/services/rcs/mainTest.php index 553891748..bd1f5617c 100644 --- a/test/midcom/services/rcs/mainTest.php +++ b/test/midcom/services/rcs/mainTest.php @@ -15,6 +15,7 @@ use midcom_db_topic; use midcom_services_rcs_backend_null; use midcom_services_rcs_backend_rcs; +use midcom\events\dbaevent; /** * OpenPSA testcase @@ -60,6 +61,7 @@ public function test_update() $topic = $this->create_object(midcom_db_topic::class); $rcs = new midcom_services_rcs($conf); - $this->assertTrue($rcs->update($topic)); + $rcs->update(new dbaevent($topic)); + $this->assertCount(1, $rcs->load_backend($topic)->get_history()->all()); } }