Ejemplo n.º 1
0
 public function testPreparePriceData()
 {
     $data = array(array('website_id' => 0, 'cust_group' => 1, 'price_qty' => 2, 'price' => 8), array('website_id' => 0, 'cust_group' => 1, 'price_qty' => 5, 'price' => 5), array('website_id' => 1, 'cust_group' => 1, 'price_qty' => 5, 'price' => 5));
     $newData = $this->_model->preparePriceData($data, Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, 1);
     $this->assertEquals(2, count($newData));
     $this->assertArrayHasKey('1-2', $newData);
     $this->assertArrayHasKey('1-5', $newData);
 }