mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-02 21:30:16 +09:00
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:
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)
|
||||
|
||||
Reference in new issue
Block a user