public function testSuperUserCustomDateNotRequiredFieldWalkthroughForAccountsModule()
 {
     $super = $this->logoutCurrentUserLoginNewUserAndGetByUsername('super');
     //Test create field list.
     $this->resetPostArray();
     $this->setGetArray(array('moduleClassName' => 'AccountsModule'));
     //View creation screen, then create custom field for date custom field type.
     $this->createDateNotRequiredCustomFieldByModule('AccountsModule', 'datenotreq');
     $this->setGetArray(array('moduleClassName' => 'AccountsModule', 'viewClassName' => 'AccountEditAndDetailsView'));
     $layout = AccountsDesignerWalkthroughHelperUtil::getAccountEditAndDetailsViewLayoutWithAllCustomFieldsPlaced();
     $this->setPostArray(array('save' => 'Save', 'layout' => $layout, 'LayoutPanelsTypeForm' => array('type' => FormLayout::PANELS_DISPLAY_TYPE_ALL)));
     $content = $this->runControllerWithExitExceptionAndGetContent('designer/default/LayoutEdit');
     $this->assertContains('Layout saved successfully', $content);
     $superAccountId = self::getModelIdByModelNameAndName('Account', 'superAccount');
     $this->setGetArray(array('modalTransferInformation' => array('sourceIdFieldId' => 'x', 'sourceNameFieldId' => 'y', 'modalId' => 'z')));
     $this->resetPostArray();
     $this->runControllerWithNoExceptionsAndGetContent('accounts/default/modalList');
     $this->setGetArray(array('selectAll' => '1'));
     $this->resetPostArray();
     $this->runControllerWithNoExceptionsAndGetContent('accounts/default/massEdit');
 }
 /**
  * @depends testDeleteOfTheAccountUserForTheCustomFieldsPlacedForAccountsModule
  */
 public function testWhetherSearchWorksForTheCustomFieldsPlacedForAccountsModuleAfterDeletingTheAccount()
 {
     $super = $this->logoutCurrentUserLoginNewUserAndGetByUsername('super');
     //Search a created account using the customfield.
     $this->resetGetArray();
     $this->setGetArray(array('AccountsSearchForm' => AccountsDesignerWalkthroughHelperUtil::fetchAccountsSearchFormGetData(), 'ajax' => 'list-view'));
     $content = $this->runControllerWithNoExceptionsAndGetContent('accounts/default');
     //Assert that the edit account does not exits after the search.
     $this->assertContains("No results found", $content);
     $this->assertNotContains("26378 South Arlington Ave", $content);
 }