fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-23 12:50:40 +00:00
parent f5a6c27618
commit b565e1e830
3 changed files with 5 additions and 16 deletions

View File

@ -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'],

View File

@ -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);
}
/**

View File

@ -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