From d0deaa4a8dfb5628e05761963fff5f449d49b3d8 Mon Sep 17 00:00:00 2001 From: Martin Kluska Date: Fri, 24 Feb 2023 18:35:24 +0100 Subject: [PATCH] Fix test --- src/Device/AbstractDevice.php | 2 +- tests/src/Device/DeviceTestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Device/AbstractDevice.php b/src/Device/AbstractDevice.php index 9357c3c..bcc2bd3 100644 --- a/src/Device/AbstractDevice.php +++ b/src/Device/AbstractDevice.php @@ -74,7 +74,7 @@ abstract class AbstractDevice /** * The Ghostscript object. */ - private GhostscriptInterface $ghostscript; + protected GhostscriptInterface $ghostscript; /** * The arguments object. diff --git a/tests/src/Device/DeviceTestCase.php b/tests/src/Device/DeviceTestCase.php index 8e7ce90..16d916c 100644 --- a/tests/src/Device/DeviceTestCase.php +++ b/tests/src/Device/DeviceTestCase.php @@ -31,7 +31,7 @@ protected function getGhostscript(?string $version): Ghostscript|MockObject } else { $ghostscript = $this->createPartialMock(Ghostscript::class, ['getVersion']); - $ghostscript->expects($this->once()) + $ghostscript->expects($this->atLeastOnce()) ->method('getVersion') ->will($this->returnValue($version)); }