From 5bf84355c47bb37f18f09a4bbdf86bbf8e4d9725 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Mon, 16 Mar 2026 23:18:31 +0000 Subject: [PATCH] Fixes for 3 code quality findings in `Servicwdownloadable` (#3330) * Apply suggested fix to tests-legacy/modules/Servicedownloadable/ServiceTest.php from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to tests-legacy/modules/Servicedownloadable/ServiceTest.php from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to tests-legacy/modules/Servicedownloadable/ServiceTest.php from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- tests-legacy/modules/Servicedownloadable/ServiceTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests-legacy/modules/Servicedownloadable/ServiceTest.php b/tests-legacy/modules/Servicedownloadable/ServiceTest.php index 5f00fbb54..d4dce7a4a 100644 --- a/tests-legacy/modules/Servicedownloadable/ServiceTest.php +++ b/tests-legacy/modules/Servicedownloadable/ServiceTest.php @@ -55,7 +55,7 @@ final class ServiceTest extends \BBTestCase $model = new \Model_ServiceDownloadable(); $model->loadBean(new \DummyBean()); - $dbMock = $this->createMock('\Box_Database'); + $dbMock = $this->createMock(\Box_Database::class); $dbMock->expects($this->atLeastOnce()) ->method('dispense') ->willReturn($model); @@ -85,7 +85,7 @@ final class ServiceTest extends \BBTestCase ->method('getOrderService') ->willReturn(new \Model_ServiceDownloadable()); - $dbMock = $this->createMock('\Box_Database'); + $dbMock = $this->createMock(\Box_Database::class); $dbMock->expects($this->atLeastOnce()) ->method('trash'); @@ -107,7 +107,7 @@ final class ServiceTest extends \BBTestCase $productModel->loadBean(new \DummyBean()); $productModel->config = '{"filename": "test.txt"}'; - $dbMock = $this->getMockBuilder('\Box_Database')->getMock(); + $dbMock = $this->getMockBuilder(\Box_Database::class)->getMock(); $dbMock->expects($this->atLeastOnce()) ->method('store') ->with($productModel)