Esempio n. 1
0
 /**
  * @expectedException \Magento\Framework\Exception\FileSystemException
  * @expectedExceptionMessage Deployment config file env.php is not writable.
  */
 public function testSaveConfigException()
 {
     $this->configFilePool->method('getPaths')->willReturn([ConfigFilePool::APP_ENV => 'env.php']);
     $exception = new FileSystemException(new Phrase('error when writing file config file'));
     $this->dirWrite->method('writeFile')->willThrowException($exception);
     $this->object->saveConfig([ConfigFilePool::APP_ENV => ['key' => 'value']]);
 }