Example #1
0
 public function testCanBeEmpty()
 {
     $this->assertFalse($this->_model->canBeEmpty());
     $this->_model->setData(['can_be_empty' => true], 'scope');
     $this->assertTrue($this->_model->canBeEmpty());
 }
 /**
  * {@inheritdoc}
  */
 public function canBeEmpty()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'canBeEmpty');
     if (!$pluginInfo) {
         return parent::canBeEmpty();
     } else {
         return $this->___callPlugins('canBeEmpty', func_get_args(), $pluginInfo);
     }
 }