diff --git a/app/selfserve/composer.lock b/app/selfserve/composer.lock index 2c1923ab6b..ca9494fc5e 100644 --- a/app/selfserve/composer.lock +++ b/app/selfserve/composer.lock @@ -3963,16 +3963,16 @@ }, { "name": "olcs/olcs-common", - "version": "5.0.0-beta.2", + "version": "5.0.0-beta.3", "source": { "type": "git", "url": "https://github.com/dvsa/olcs-common.git", - "reference": "cce5be127209151bb076b5bb0c48b0f74a2da189" + "reference": "36c12783cc5af64276f9a8a78bad4f5496bd00e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dvsa/olcs-common/zipball/cce5be127209151bb076b5bb0c48b0f74a2da189", - "reference": "cce5be127209151bb076b5bb0c48b0f74a2da189", + "url": "https://api.github.com/repos/dvsa/olcs-common/zipball/36c12783cc5af64276f9a8a78bad4f5496bd00e5", + "reference": "36c12783cc5af64276f9a8a78bad4f5496bd00e5", "shasum": "" }, "require": { @@ -4030,9 +4030,9 @@ "notification-url": "https://packagist.org/downloads/", "description": "Common library for the OLCS Project", "support": { - "source": "https://github.com/dvsa/olcs-common/tree/5.0.0-beta.2" + "source": "https://github.com/dvsa/olcs-common/tree/5.0.0-beta.3" }, - "time": "2024-01-25T10:15:58+00:00" + "time": "2024-01-25T16:46:01+00:00" }, { "name": "olcs/olcs-logging", diff --git a/app/selfserve/test/Olcs/src/FormService/Form/Lva/OperatingCentre/LvaOperatingCentreTest.php b/app/selfserve/test/Olcs/src/FormService/Form/Lva/OperatingCentre/LvaOperatingCentreTest.php index acb67a3b73..4a7c61e040 100644 --- a/app/selfserve/test/Olcs/src/FormService/Form/Lva/OperatingCentre/LvaOperatingCentreTest.php +++ b/app/selfserve/test/Olcs/src/FormService/Form/Lva/OperatingCentre/LvaOperatingCentreTest.php @@ -5,7 +5,9 @@ use Common\Service\Helper\TranslationHelperService; use Common\Service\Helper\UrlHelperService; use Laminas\Form\ElementInterface; +use Laminas\InputFilter\CollectionInputFilter; use Laminas\InputFilter\InputFilterInterface; +use Laminas\InputFilter\InputInterface; use Mockery as m; use Mockery\Adapter\Phpunit\MockeryTestCase; use Laminas\Form\Form; @@ -115,14 +117,9 @@ public function testAlterFormNi($params) $postcodeInput = m::mock(InputInterface::class); $postcodeInput->shouldReceive('setRequired')->with(false)->once(); - // Mock for searchPostcode input and its setRequired and setAllowEmpty methods - $searchPostcodeInput = m::mock(InputInterface::class); - $searchPostcodeInput->shouldReceive('setRequired')->with(false)->once(); - $searchPostcodeInput->shouldReceive('setAllowEmpty')->with(true)->once(); - // Mock the collection of inputs for searchPostcode $inputsCollection = m::mock(CollectionInputFilter::class); - $inputsCollection->shouldReceive('getInputs')->andReturn([$searchPostcodeInput]); + $inputsCollection->shouldReceive('getInputs')->andReturn([m::mock(InputInterface::class)]); // Mock the InputFilter for address $addressInputFilter = m::mock(InputFilterInterface::class); @@ -242,14 +239,9 @@ public function testAlterFormGb($params) $postcodeInput = m::mock(InputInterface::class); $postcodeInput->shouldReceive('setRequired')->with(false)->once(); - // Mock for searchPostcode input and its setRequired and setAllowEmpty methods - $searchPostcodeInput = m::mock(InputInterface::class); - $searchPostcodeInput->shouldReceive('setRequired')->with(false)->once(); - $searchPostcodeInput->shouldReceive('setAllowEmpty')->with(true)->once(); - // Mock the collection of inputs for searchPostcode $inputsCollection = m::mock(CollectionInputFilter::class); - $inputsCollection->shouldReceive('getInputs')->andReturn([$searchPostcodeInput]); + $inputsCollection->shouldReceive('getInputs')->andReturn([m::mock(InputInterface::class)]); // Mock the InputFilter for address $addressInputFilter = m::mock(InputFilterInterface::class);