/**
  * @dataProvider requestPathExceptionDataProvider
  * @expectedException \Magento\Framework\Exception\LocalizedException
  */
 public function testValidateSuffixException($suffix)
 {
     $this->_helper->validateSuffix($suffix);
 }
Example #2
0
 /**
  * Check url rewrite suffix - whether we can support it
  *
  * @return $this
  */
 public function beforeSave()
 {
     $this->urlRewriteHelper->validateSuffix($this->getValue());
     return $this;
 }
Example #3
0
 /**
  * Check url rewrite suffix - whether we can support it
  *
  * @return $this
  */
 protected function _beforeSave()
 {
     $this->_coreUrlRewrite->validateSuffix($this->getValue());
     return $this;
 }