/** * @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()); }
protected function createExportZip() { $zipFile = parent::createExportZip(); $this->createdZipFiles[] = $zipFile; return $zipFile; }