Exemple #1
0
 /**
  * @param array $attribute1SetInfo
  * @param array $attribute2SetInfo
  * @param float $expected
  * @dataProvider compareAttributesDataProvider
  */
 public function testCompareAttributes($attribute1Sort, $attribute2Sort, $expected)
 {
     $attribute1 = $this->getMock('Mage_Eav_Model_Entity_Attribute', null, array(), '', false);
     $attribute1->setAttributeSetInfo(array(0 => $attribute1Sort));
     $attribute2 = $this->getMock('Mage_Eav_Model_Entity_Attribute', null, array(), '', false);
     $attribute2->setAttributeSetInfo(array(0 => $attribute2Sort));
     $this->assertEquals($expected, $this->_model->attributesCompare($attribute1, $attribute2));
 }