@@ 759-767 (lines=9) @@ | ||
756 | } |
|
757 | ||
758 | ||
759 | public function testSetBillingAddressByItem() |
|
760 | { |
|
761 | $item = $this->getAddress( 'Example company' ); |
|
762 | ||
763 | $this->object->setAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT, $item ); |
|
764 | ||
765 | $address = $this->object->get()->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT ); |
|
766 | $this->assertEquals( 'Example company', $address->getCompany() ); |
|
767 | } |
|
768 | ||
769 | ||
770 | public function testSetBillingAddressByArray() |
|
@@ 817-825 (lines=9) @@ | ||
814 | } |
|
815 | ||
816 | ||
817 | public function testSetDeliveryAddressByItem() |
|
818 | { |
|
819 | $item = $this->getAddress( 'Example company' ); |
|
820 | ||
821 | $this->object->setAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_DELIVERY, $item ); |
|
822 | ||
823 | $address = $this->object->get()->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_DELIVERY ); |
|
824 | $this->assertEquals( 'Example company', $address->getCompany() ); |
|
825 | } |
|
826 | ||
827 | ||
828 | public function testSetDeliveryAddressByArray() |