3 require_once("modules/ModuleBuilder/Module/StudioModule.php");
5 class StudioModuleTest extends Sugar_PHPUnit_Framework_TestCase
7 public function setUp()
11 require('include/modules.php');
12 $GLOBALS['beanList'] = $beanList;
13 $GLOBALS['beanFiles'] = $beanFiles;
14 $GLOBALS['app_list_strings'] = return_app_list_strings_language($GLOBALS['current_language']);
18 public function tearDown()
20 unset($GLOBALS['beanFiles']);
21 unset($GLOBALS['beanList']);
22 unset($GLOBALS['app_list_strings']);
28 public function testRemoveFieldFromLayoutsDocumentsException()
30 $SM = new StudioModule("Documents");
32 $SM->removeFieldFromLayouts("aFieldThatDoesntExist");
33 $this->assertTrue(true);
34 } catch (Exception $e)
36 $this->assertTrue(false, "Studio module threw exception :" . $e->getMessage());