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>
This commit is contained in:
Adam DaleyandCopilot Autofix powered by AI authored and GitHub committed 2026-03-16 23:18:31 +00:00
1 parent c19b98c1d4
commit 5bf84355c4
1 file changed
+3 -3
@@ -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)