/** * tests getMinDPrice method * * @return null */ public function testGetMinDPrice() { $this->assertEquals(1, $this->_oSubj->getMinDPrice()); $this->assertEquals(1, $this->_oSubj->getMdSubvariantByName("Red")->getMinDPrice()); $this->assertEquals(1, $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("L")->getMinDPrice()); $this->assertEquals(1, $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("L")->getMdSubvariantByName("Silk")->getMinDPrice()); $this->assertEquals(2, $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("L")->getMdSubvariantByName("Wool")->getMinDPrice()); }