/** * Test related method */ public function testIsSetEnabled() { $this->assertTrue($this->product->isEnabled()); $this->product->setEnabled(false); $this->assertFalse($this->product->isEnabled()); $this->product->setEnabled(true); $this->assertTrue($this->product->isEnabled()); }
/** * {@inheritDoc} */ public function setEnabled($enabled) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setEnabled', array($enabled)); return parent::setEnabled($enabled); }