public function testSuperUserProductTemplateDefaultControllerActions()
 {
     $super = $this->logoutCurrentUserLoginNewUserAndGetByUsername('super');
     //Default Controller actions requiring some sort of parameter via POST or GET
     //Load Product Modules Menu.
     $this->setGetArray(array('moduleClassName' => 'ProductTemplatesModule'));
     $this->runControllerWithNoExceptionsAndGetContent('designer/default/modulesMenu');
     //Load AttributesList for ProductTemplate module.
     $this->setGetArray(array('moduleClassName' => 'ProductTemplatesModule'));
     $this->runControllerWithNoExceptionsAndGetContent('designer/default/attributesList');
     //Load ModuleLayoutsList for ProductTemplate module.
     $this->setGetArray(array('moduleClassName' => 'ProductTemplatesModule'));
     $this->runControllerWithNoExceptionsAndGetContent('designer/default/moduleLayoutsList');
     //Now confirm everything did in fact save correctly.
     $this->assertEquals('Catalog Item', ProductTemplatesModule::getModuleLabelByTypeAndLanguage('Singular'));
     $this->assertEquals('Catalog Items', ProductTemplatesModule::getModuleLabelByTypeAndLanguage('Plural'));
     $this->assertEquals('catalog item', ProductTemplatesModule::getModuleLabelByTypeAndLanguage('SingularLowerCase'));
     $this->assertEquals('catalog items', ProductTemplatesModule::getModuleLabelByTypeAndLanguage('PluralLowerCase'));
     //Load LayoutEdit for each applicable module and applicable layout
     $this->resetPostArray();
     $this->setGetArray(array('moduleClassName' => 'ProductTemplatesModule', 'viewClassName' => 'ProductTemplatesListView'));
     $this->runControllerWithNoExceptionsAndGetContent('designer/default/LayoutEdit');
     $this->setGetArray(array('moduleClassName' => 'ProductTemplatesModule', 'viewClassName' => 'ProductTemplatesModalListView'));
     $this->runControllerWithNoExceptionsAndGetContent('designer/default/LayoutEdit');
     $this->setGetArray(array('moduleClassName' => 'ProductTemplatesModule', 'viewClassName' => 'ProductTemplatesModalSearchView'));
     $this->runControllerWithNoExceptionsAndGetContent('designer/default/LayoutEdit');
     $this->setGetArray(array('moduleClassName' => 'ProductTemplatesModule', 'viewClassName' => 'ProductTemplateEditAndDetailsView'));
     $this->runControllerWithNoExceptionsAndGetContent('designer/default/LayoutEdit');
 }
 /**
  * Action called in the event that the mass delete quantity is larger than the pageSize.
  * This action is called after the pageSize quantity has been delted and continues to be
  * called until the mass delete action is complete.  For example, if there are 20 records to delete
  * and the pageSize is 5, then this action will be called 3 times.  The first 5 are updated when
  * the actionMassDelete is called upon the initial form submission.
  */
 public function actionMassDeleteProgress()
 {
     $pageSize = Yii::app()->pagination->resolveActiveForCurrentUserByType('massDeleteProgressPageSize');
     $productTemplate = new ProductTemplate(false);
     $dataProvider = $this->getDataProviderByResolvingSelectAllFromGet(new ProductTemplatesSearchForm($productTemplate), $pageSize, Yii::app()->user->userModel->id, null, 'ProductTemplatesSearchView');
     $this->processMassDeleteProgress('ProductTemplate', $pageSize, ProductTemplatesModule::getModuleLabelByTypeAndLanguage('Plural'), $dataProvider);
 }
 /**
  * Resolve the alert display in html options
  * @param array $htmlOptions
  * @return array
  */
 protected function resolveConfirmAlertInHtmlOptions($htmlOptions)
 {
     $htmlOptions['confirm'] = Zurmo::t('Core', 'Are you sure you want to delete this {modelLabel}?', array('{modelLabel}' => ProductTemplatesModule::getModuleLabelByTypeAndLanguage('SingularLowerCase')));
     return $htmlOptions;
 }