Ejemplo n.º 1
0
 /**
  * @covers \Magento\Cms\Model\Wysiwyg\Images\Storage::deleteDirectory
  */
 public function testDeleteRootDirectory()
 {
     $this->setExpectedException('\\Magento\\Framework\\Exception\\LocalizedException', sprintf('We can\'t delete root directory %s right now.', self::STORAGE_ROOT_DIR));
     $this->imagesStorage->deleteDirectory(self::STORAGE_ROOT_DIR);
 }
Ejemplo n.º 2
0
 /**
  * @covers \Magento\Cms\Model\Wysiwyg\Images\Storage::deleteDirectory
  */
 public function testDeleteRootDirectory()
 {
     $this->setExpectedException('\\Magento\\Framework\\Model\\Exception', sprintf('We cannot delete root directory %s.', self::STORAGE_ROOT_DIR));
     $this->_model->deleteDirectory(self::STORAGE_ROOT_DIR);
 }