@@ 524-533 (lines=10) @@ | ||
521 | } |
|
522 | ||
523 | ||
524 | public function testDeleteProductFlagError() |
|
525 | { |
|
526 | $this->object->addProduct( $this->testItem->getId(), 2 ); |
|
527 | ||
528 | $item = $this->object->get()->getProduct( 0 ); |
|
529 | $item->setFlags( \Aimeos\MShop\Order\Item\Base\Product\Base::FLAG_IMMUTABLE ); |
|
530 | ||
531 | $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Basket\\Exception' ); |
|
532 | $this->object->deleteProduct( 0 ); |
|
533 | } |
|
534 | ||
535 | ||
536 | public function testEditProduct() |
|
@@ 692-701 (lines=10) @@ | ||
689 | } |
|
690 | ||
691 | ||
692 | public function testEditProductFlagError() |
|
693 | { |
|
694 | $this->object->addProduct( $this->testItem->getId(), 2 ); |
|
695 | ||
696 | $item = $this->object->get()->getProduct( 0 ); |
|
697 | $item->setFlags( \Aimeos\MShop\Order\Item\Base\Product\Base::FLAG_IMMUTABLE ); |
|
698 | ||
699 | $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Basket\\Exception' ); |
|
700 | $this->object->editProduct( 0, 4 ); |
|
701 | } |
|
702 | ||
703 | ||
704 | public function testAddCoupon() |