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'); }
public function testGetBreadCrumbSymbolForRTLTheme() { $theme = SugarTestThemeUtilities::createAnonymousRTLTheme(); SugarThemeRegistry::set($theme); $this->assertEquals("<span class='pointer'>«</span>", $this->_view->getBreadCrumbSymbol()); }