From fcb7ad469005a59bfa8e07ffdb5b0993e949fdea Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 5 Feb 2026 01:46:41 +0100 Subject: [PATCH] fix(ci): Use invoke private to call execute on command The execute command is protected in stable31 Signed-off-by: Carl Schwan --- apps/settings/tests/Command/AdminDelegation/AddTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/settings/tests/Command/AdminDelegation/AddTest.php b/apps/settings/tests/Command/AdminDelegation/AddTest.php index 46b31dab4c0..032c201928b 100644 --- a/apps/settings/tests/Command/AdminDelegation/AddTest.php +++ b/apps/settings/tests/Command/AdminDelegation/AddTest.php @@ -74,7 +74,7 @@ class AddTest extends TestCase { ->with($groupId, $settingClass) ->willReturn($authorizedGroup); - $this->invokePrivate($this->command, 'execute', [$inputInterface, $outputInterface]); + $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); $this->assertEquals(0, $result); } @@ -103,7 +103,7 @@ class AddTest extends TestCase { ->with($groupId, $settingClass) ->willThrowException(new ConflictException('Group is already assigned to this class')); - $this->invokePrivate($this->command, 'execute', [$inputInterface, $outputInterface]); + $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); $this->assertEquals(4, $result, 'Duplicate assignment should return exit code 4'); } @@ -117,7 +117,7 @@ class AddTest extends TestCase { ->with('settingClass') ->willReturn($settingClass); - $this->invokePrivate($this->command, 'execute', [$inputInterface, $outputInterface]); + $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); // Should return exit code 2 for invalid setting class $this->assertEquals(2, $result); @@ -140,7 +140,7 @@ class AddTest extends TestCase { ->with($groupId) ->willReturn(false); - $this->invokePrivate($this->command, 'execute', [$inputInterface, $outputInterface]); + $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); // Should return exit code 3 for non-existent group $this->assertEquals(3, $result);