Ejemplo n.º 1
0
 public function test_canOverwriteSku()
 {
     $this->assertEquals('sku', $this->product->get('sku'));
     $this->product->set('sku', 'sku3');
     $this->assertEquals('sku3', $this->product->get('sku'));
 }
Ejemplo n.º 2
0
 /**
  * Check to see if the added simple product has the keys to our configurable product
  *
  * @param Simple $product
  *
  * @return bool
  */
 private function simpleProductConfigAttributeTest(Simple $product)
 {
     foreach ($this->getConfigurableAttribute() as $key) {
         if ($product->get($key) === null) {
             return false;
         }
     }
     return true;
 }