diff --git a/Models/BillElementMapper.php b/Models/BillElementMapper.php index 6a112b7..f397608 100755 --- a/Models/BillElementMapper.php +++ b/Models/BillElementMapper.php @@ -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'], diff --git a/tests/Models/BillElementTest.php b/tests/Models/BillElementTest.php index be06730..429ed9f 100755 --- a/tests/Models/BillElementTest.php +++ b/tests/Models/BillElementTest.php @@ -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); } /** diff --git a/tests/Models/BillTest.php b/tests/Models/BillTest.php index 568c958..715d66c 100755 --- a/tests/Models/BillTest.php +++ b/tests/Models/BillTest.php @@ -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