53 $product = $this->loadExistingProduct();
55 $previousValue = $product->getField(
'NAME');
56 $this->assertFalse($product->isChanged());
58 $product->setField(
'NAME',
'TEST');
59 $this->assertTrue($product->isChanged());
61 $product->setField(
'NAME', $previousValue);
62 $this->assertFalse($product->isChanged());
78 $product = $this->loadExistingProduct();
80 foreach ($product->getSkuCollection() as $sku)
82 $sku->setField(
'NAME',
'TEST');
83 $this->assertTrue($sku->isChanged());
84 $this->assertEquals(
'TEST', $sku->getField(
'NAME'));
87 $this->assertTrue($product->isChanged());
88 $this->assertTrue($product->getSkuCollection()->isChanged());
92 $this->assertFalse($product->isChanged());
93 $this->assertFalse($product->getSkuCollection()->isChanged());
95 foreach ($product->getSkuCollection() as $sku)
97 $this->assertFalse($sku->isChanged());
98 $this->assertEquals(
'TEST', $sku->getField(
'NAME'));