public function test_canOverwriteSku() { $this->assertEquals('sku', $this->product->get('sku')); $this->product->set('sku', 'sku3'); $this->assertEquals('sku3', $this->product->get('sku')); }
/** * 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; }