From f7e9e262c161950355ee7af3b5732b01d37860a5 Mon Sep 17 00:00:00 2001 From: ayushchd Date: Thu, 11 Jul 2013 13:59:49 +0545 Subject: Tests for setup/* and user_prefs* --- setup/lib/form_processing.lib.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'setup') diff --git a/setup/lib/form_processing.lib.php b/setup/lib/form_processing.lib.php index d9b6e6aea3..ed013896f6 100644 --- a/setup/lib/form_processing.lib.php +++ b/setup/lib/form_processing.lib.php @@ -21,7 +21,10 @@ function process_formset(FormDisplay $form_display) // drop post data header('HTTP/1.1 303 See Other'); header('Location: index.php'); - exit; + echo 'here'; + if (!defined('TESTSUITE')) { + exit; + } } if (!$form_display->process(false)) { // handle form view and failed POST @@ -55,7 +58,9 @@ function process_formset(FormDisplay $form_display) // drop post data header('HTTP/1.1 303 See Other'); header('Location: index.php'); - exit; + if (!defined('TESTSUITE')) { + exit; + } } } } -- cgit v1.2.3 From a39b7330f669ea7459eab4cf7a1438987ef4c8af Mon Sep 17 00:00:00 2001 From: ayushchd Date: Thu, 11 Jul 2013 22:50:53 +0545 Subject: Remove debug message --- setup/lib/form_processing.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup') diff --git a/setup/lib/form_processing.lib.php b/setup/lib/form_processing.lib.php index ed013896f6..65ebb1db2e 100644 --- a/setup/lib/form_processing.lib.php +++ b/setup/lib/form_processing.lib.php @@ -21,7 +21,7 @@ function process_formset(FormDisplay $form_display) // drop post data header('HTTP/1.1 303 See Other'); header('Location: index.php'); - echo 'here'; + if (!defined('TESTSUITE')) { exit; } -- cgit v1.2.3