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)