Пример #1
0
 /**
  * @test
  * @group library
  * @expectedException \Cms\Exception
  * @expectedExceptionCode 2302
  */
 public function test_exportTemplatesnippetShouldThrowQuotaExceptionAsExpected()
 {
     // ARRANGE
     ConfigHelper::mergeIntoConfig(array('quota' => array('exportAllowed' => false)));
     // ACT
     $this->business->export(ExportBusiness::EXPORT_MODE_TEMPLATESNIPPET, 'WEBSITE-ID', array());
 }
Пример #2
0
 protected function createExportZip()
 {
     $zipFile = parent::createExportZip();
     $this->createdZipFiles[] = $zipFile;
     return $zipFile;
 }