From a2f8f636e7cfd09a4c5bc02c0eb91d84223244c6 Mon Sep 17 00:00:00 2001 From: Nikolas Evers Date: Thu, 11 Jun 2026 10:24:47 +0200 Subject: [PATCH] test: use createMock instead of getMockBuilder constructor bypass --- tests/Profile/Shopware/Gateway/ApiReaderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Profile/Shopware/Gateway/ApiReaderTest.php b/tests/Profile/Shopware/Gateway/ApiReaderTest.php index 33122ea88..38270bc41 100644 --- a/tests/Profile/Shopware/Gateway/ApiReaderTest.php +++ b/tests/Profile/Shopware/Gateway/ApiReaderTest.php @@ -56,7 +56,7 @@ public function testRead(): void null, new ProductDataSet(), ); - $mock = $this->getMockBuilder(ConnectionFactory::class)->getMock(); + $mock = $this->createMock(ConnectionFactory::class); $mock->expects($this->once()) ->method('createApiClient') ->with($migrationContext) @@ -88,7 +88,7 @@ public function testReadGatewayException(): void null, new ProductDataSet(), ); - $mock = $this->getMockBuilder(ConnectionFactory::class)->getMock(); + $mock = $this->createMock(ConnectionFactory::class); $mock->expects($this->once()) ->method('createApiClient') ->with($migrationContext)