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