mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-01-27 14:58:41 +00:00
fix tests
This commit is contained in:
parent
f5a6c27618
commit
b565e1e830
|
|
@ -42,7 +42,7 @@ final class BillElementMapper extends DataMapperFactory
|
|||
'billing_bill_element_item_number' => ['name' => 'billing_bill_element_item_number', 'type' => 'string', 'internal' => 'itemNumber'],
|
||||
'billing_bill_element_item_name' => ['name' => 'billing_bill_element_item_name', 'type' => 'string', 'internal' => 'itemName'],
|
||||
'billing_bill_element_item_desc' => ['name' => 'billing_bill_element_item_desc', 'type' => 'string', 'internal' => 'itemDescription'],
|
||||
'billing_bill_element_quantity' => ['name' => 'billing_bill_element_quantity', 'type' => 'int', 'internal' => 'quantity'],
|
||||
'billing_bill_element_quantity' => ['name' => 'billing_bill_element_quantity', 'type' => 'int', 'internal' => 'quantity', 'private' => true],
|
||||
|
||||
'billing_bill_element_single_netlistprice' => ['name' => 'billing_bill_element_single_netlistprice', 'type' => 'Serializable', 'internal' => 'singleListPriceNet'],
|
||||
'billing_bill_element_single_grosslistprice' => ['name' => 'billing_bill_element_single_grosslistprice', 'type' => 'Serializable', 'internal' => 'singleListPriceGross'],
|
||||
|
|
|
|||
|
|
@ -38,10 +38,10 @@ final class BillElementTest extends \PHPUnit\Framework\TestCase
|
|||
public function testDefault() : void
|
||||
{
|
||||
self::assertEquals(0, $this->element->id);
|
||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->element->singleSalesPriceNet);
|
||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->element->totalSalesPriceNet);
|
||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->element->singlePurchasePriceNet);
|
||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->element->totalPurchasePriceNet);
|
||||
self::assertInstanceOf('\phpOMS\Stdlib\Base\IntFloat', $this->element->singleSalesPriceNet);
|
||||
self::assertInstanceOf('\phpOMS\Stdlib\Base\IntFloat', $this->element->totalSalesPriceNet);
|
||||
self::assertInstanceOf('\phpOMS\Stdlib\Base\IntFloat', $this->element->singlePurchasePriceNet);
|
||||
self::assertInstanceOf('\phpOMS\Stdlib\Base\IntFloat', $this->element->totalPurchasePriceNet);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -117,17 +117,6 @@ final class BillTest extends \PHPUnit\Framework\TestCase
|
|||
self::assertEquals(ISO4217CharEnum::_USD, $this->bill->getCurrency());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Billing\Models\Bill
|
||||
* @group module
|
||||
*/
|
||||
public function testMediaInputOutput() : void
|
||||
{
|
||||
$this->bill->addMedia($temp = new Media());
|
||||
self::assertCount(1, $this->bill->getMedia());
|
||||
self::assertEquals([$temp], $this->bill->getMediaByType());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Billing\Models\Bill
|
||||
* @group module
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user