Studio * 2. Module Name > Layouts > Edit and or Detail View * 3. Note fields in lower left and upper left quadrants. * Desired behavior: alphabetized fields. * */ class Bug10329Test extends Sugar_PHPUnit_Framework_TestCase { private $_parser; public function setUp() { require('include/modules.php'); $GLOBALS['beanList'] = $beanList; $GLOBALS['beanFiles'] = $beanFiles; $GLOBALS['app_list_strings'] = return_app_list_strings_language($GLOBALS['current_language']); require_once ('modules/ModuleBuilder/parsers/ParserFactory.php') ; $this->_parser = ParserFactory::getParser('EditView','Accounts'); } public function tearDown() { //unset($GLOBALS['app_list_strings']); //unset($this->_parser); } public function testTranslateLabel() { $avail_fields = $this->_parser->getAvailableFields(); //verify that translateLabel exists $this->assertArrayHasKey('translatedLabel', $avail_fields[0]); } }