Exemplo n.º 1
0
 /**
  * tests getDPrice method
  *
  * @return null
  */
 public function testGetDPrice()
 {
     $this->assertNull($this->_oSubj->getDPrice());
     $this->assertNull($this->_oSubj->getMdSubvariantByName("Green")->getDPrice());
     $this->assertNull($this->_oSubj->getMdSubvariantByName("Red")->getDPrice());
     $this->assertNull($this->_oSubj->getMdSubvariantByName("Green")->getMdSubvariantByName("S")->getDPrice());
     $this->assertEquals(4, $this->_oSubj->getMdSubvariantByName("Green")->getMdSubvariantByName("S")->getMdSubvariantByName("Silk")->getDPrice());
     $this->assertEquals(1, $this->_oSubj->getMdSubvariantByName("Red")->getMdSubvariantByName("S")->getMdSubvariantByName("Silk")->getDPrice());
 }