/**
  * @dataProvider requestPathExceptionDataProvider
  * @expectedException \Magento\Framework\Exception\LocalizedException
  */
 public function testValidateSuffixException($suffix)
 {
     $this->_helper->validateSuffix($suffix);
 }
示例#2
0
文件: Suffix.php 项目: nja78/magento2
 /**
  * Check url rewrite suffix - whether we can support it
  *
  * @return $this
  */
 public function beforeSave()
 {
     $this->urlRewriteHelper->validateSuffix($this->getValue());
     return $this;
 }
示例#3
0
文件: Suffix.php 项目: aiesh/magento2
 /**
  * Check url rewrite suffix - whether we can support it
  *
  * @return $this
  */
 protected function _beforeSave()
 {
     $this->_coreUrlRewrite->validateSuffix($this->getValue());
     return $this;
 }