Fixes for 2 code quality findings in Servicedownloadable (#3338)

* 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-17 12:16:46 +00:00
1 parent 960d951ee7
commit b14daa2f7b
1 file changed
+2 -2
@@ -136,7 +136,7 @@ final class ServiceTest extends \BBTestCase
$productModel->loadBean(new \DummyBean());
$productModel->config = '{"filename": "existing.txt", "update_orders": true}';
$dbMock = $this->getMockBuilder(\Box_Database::class)->getMock();
$dbMock = $this->createMock(\Box_Database::class);
$dbMock->expects($this->atLeastOnce())
->method('store')
->with($productModel)
@@ -169,7 +169,7 @@ final class ServiceTest extends \BBTestCase
$productModel->loadBean(new \DummyBean());
$productModel->config = null;
$dbMock = $this->getMockBuilder(\Box_Database::class)->getMock();
$dbMock = $this->createMock(\Box_Database::class);
$dbMock->expects($this->atLeastOnce())
->method('store')
->with($productModel)