コード例 #1
0
 public function testValidateWithNonexistentValidName()
 {
     $this->_model->getResource()->expects($this->any())->method('validate')->will($this->returnValue(true));
     $this->_model->setAttributeSetName('nonexistent_name');
     $this->assertTrue($this->_model->validate());
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function setAttributeSetName($attributeSetName)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setAttributeSetName');
     if (!$pluginInfo) {
         return parent::setAttributeSetName($attributeSetName);
     } else {
         return $this->___callPlugins('setAttributeSetName', func_get_args(), $pluginInfo);
     }
 }