mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-16 08:18:41 +00:00
fix tests
This commit is contained in:
parent
1e53e6f917
commit
0ddc463ef9
|
|
@ -15,6 +15,7 @@ declare(strict_types=1);
|
||||||
namespace Modules\Billing\tests\Models;
|
namespace Modules\Billing\tests\Models;
|
||||||
|
|
||||||
use Modules\Billing\Models\BillElement;
|
use Modules\Billing\Models\BillElement;
|
||||||
|
use Modules\Billing\Models\NullBill;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
|
@ -65,7 +66,7 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->element->itemNumber = '123456';
|
$this->element->itemNumber = '123456';
|
||||||
$this->element->itemName = 'Test';
|
$this->element->itemName = 'Test';
|
||||||
$this->element->itemDescription = 'Description';
|
$this->element->itemDescription = 'Description';
|
||||||
$this->element->bill = 5;
|
$this->element->bill = new NullBill(5);
|
||||||
$this->element->setQuantity(4);
|
$this->element->setQuantity(4);
|
||||||
|
|
||||||
self::assertEquals(
|
self::assertEquals(
|
||||||
|
|
@ -77,7 +78,7 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase
|
||||||
'itemName' => 'Test',
|
'itemName' => 'Test',
|
||||||
'itemDescription' => 'Description',
|
'itemDescription' => 'Description',
|
||||||
'quantity' => 4,
|
'quantity' => 4,
|
||||||
'bill' => 5,
|
'bill' => $this->element->bill,
|
||||||
],
|
],
|
||||||
$this->element->jsonSerialize()
|
$this->element->jsonSerialize()
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user