mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
Fixes for 2 code quality findings in Product Service (#3702)
* Apply suggested fix to tests-legacy/modules/Product/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/Product/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
d635930d73
commit
f36ee692d2
1 file changed
+2
-2
@@ -514,7 +514,7 @@ final class ServiceTest extends \BBTestCase
|
||||
$this->assertEquals($newProductId, $result);
|
||||
}
|
||||
|
||||
public function testDeleteProductActivaOrderException(): void
|
||||
public function testDeleteProductActiveOrderException(): void
|
||||
{
|
||||
$model = new \Model_Product();
|
||||
|
||||
@@ -576,7 +576,7 @@ final class ServiceTest extends \BBTestCase
|
||||
|
||||
$this->service->setDi($di);
|
||||
|
||||
$result = $this->service->updateCategory($model, 'title', 'decription', 'http://urltoimg.com/img.jpg');
|
||||
$result = $this->service->updateCategory($model, 'title', 'description', 'http://urltoimg.com/img.jpg');
|
||||
$this->assertIsBool($result);
|
||||
$this->assertTrue($result);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user