public function testPostDeleteWithDefaultValues() { $backupDefaultModule = $GLOBALS['sugar_config']['default_module']; $backupDefaultAction = $GLOBALS['sugar_config']['default_action']; $GLOBALS['sugar_config']['default_module'] = 'yuck'; $GLOBALS['sugar_config']['default_action'] = 'yuckyuck'; $controller = new SugarControllerMock(); $controller->post_delete(); $GLOBALS['sugar_config']['default_module'] = $backupDefaultModule; $GLOBALS['sugar_config']['default_action'] = $backupDefaultAction; $this->assertEquals("index.php?module=yuck&action=yuckyuck&record=", $controller->redirect_url); }