public function testRestrictionCanBeAdded() { $restriction = $this->createOptionRestriction(); $this->restrictionCollection->expects($this->once())->method('add')->with($restriction); $this->option->addRestriction($restriction); }
/** * @return Money */ public function totalPrice() : Money { return $this->basePrice()->addTo($this->option->price()); }