Ejemplo n.º 1
0
 public static function tearDownAfterClass()
 {
     global $mod_strings, $app_strings, $theme;
     SugarTestThemeUtilities::removeAllCreatedAnonymousThemes();
     unset($theme);
     unset($mod_strings);
     unset($app_strings);
 }
Ejemplo n.º 2
0
 public function tearDown()
 {
     $themesToRemove = array($this->_themeObject->__toString(), $this->_themeObjectChild->__toString());
     SugarTestThemeUtilities::removeAllCreatedAnonymousThemes();
     if ($this->_olddeveloperMode) {
         $GLOBALS['sugar_config']['developerMode'] = $this->_olddeveloperMode;
     } else {
         unset($GLOBALS['sugar_config']['developerMode']);
     }
 }
 public function testCanTearDownAllCreatedAnonymousThemes()
 {
     $themesCreated = array();
     for ($i = 0; $i < 5; $i++) {
         $themesCreated[] = SugarTestThemeUtilities::createAnonymousTheme();
     }
     SugarTestThemeUtilities::removeAllCreatedAnonymousThemes();
     foreach ($themesCreated as $themename) {
         $this->assertFalse(is_dir("themes/{$themename}"));
     }
 }
 /**
  * @ticket 35307
  */
 public function testOldThemeIsNotRecognized()
 {
     $themename = SugarTestThemeUtilities::createAnonymousOldTheme();
     $this->assertNull(SugarThemeRegistry::get($themename));
 }
Ejemplo n.º 5
0
 public function testGetBreadCrumbSymbolForRTLTheme()
 {
     $theme = SugarTestThemeUtilities::createAnonymousRTLTheme();
     SugarThemeRegistry::set($theme);
     $this->assertEquals("<span class='pointer'>&laquo;</span>", $this->_view->getBreadCrumbSymbol());
 }