/**
  * tests getFPrice method
  *
  * @return null
  */
 public function testGetFPrice()
 {
     $this->assertEquals('ab 1,00 €', $this->_oSubj->getFPrice());
     $this->assertEquals('ab 1,00 €', $this->_oSubj->getMdSubvariantByName("Red")->getFPrice());
     $this->assertEquals('ab 1,00 €', $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("L")->getFPrice());
     $this->assertEquals('1,00 €', $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("L")->getMdSubvariantByName("Silk")->getFPrice());
     $this->assertEquals('2,00 €', $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("L")->getMdSubvariantByName("Wool")->getFPrice());
 }
Example #2
0
 /**
  * Adds one subvariant to subvariant set
  *
  * @param OxMdVariant $oSubvariant Subvariant
  */
 protected function _addMdSubvariant($oSubvariant)
 {
     $this->_aSubvariants[$oSubvariant->getId()] = $oSubvariant;
 }