public function testCanCreateAnAnonymousRTLTheme()
 {
     $themename = SugarTestThemeUtilities::createAnonymousRTLTheme();
     $this->assertTrue(is_dir("themes/{$themename}"));
     $this->assertTrue(is_file("themes/{$themename}/themedef.php"));
     $themedef = array();
     include "themes/{$themename}/themedef.php";
     $this->assertEquals($themedef['directionality'], 'rtl');
 }
Esempio n. 2
0
 public function testGetBreadCrumbSymbolForRTLTheme()
 {
     $theme = SugarTestThemeUtilities::createAnonymousRTLTheme();
     SugarThemeRegistry::set($theme);
     $this->assertEquals("<span class='pointer'>&laquo;</span>", $this->_view->getBreadCrumbSymbol());
 }