Skip to content

Commit dde6b3e

Browse files
committed
fix tests
1 parent 563baa4 commit dde6b3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/TestCase/ToolbarServiceTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,9 @@ public function testSaveDataSerializationError()
530530

531531
// Create a panel with unserializable data
532532
/** @var SimplePanel $panel */
533-
$panel = $bar->registry()->load(SimplePanel::class);
533+
$panel = $bar->registry()->load('DebugKit.TestApp\Panel\SimplePanel', [
534+
'className' => SimplePanel::class,
535+
]);
534536
// Mock the data() method to return something problematic
535537
$panel->setData(['closure' => fn() => 'test']);
536538

0 commit comments

Comments
 (0)