From 3773f8d81c53dd0508325d6380ee49569951a61f Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 13 May 2009 15:59:22 +0000 Subject: Refs #1009: Enhancements to diagnostics tool to use the test framework. git-svn-id: https://code.elgg.org/elgg/trunk@3286 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/diagnostics/runalltests.php | 15 ++++++++ mod/diagnostics/views/default/diagnostics/test.php | 29 +++++++++++++++ .../views/default/diagnostics/testresult.php | 42 ++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 mod/diagnostics/views/default/diagnostics/runalltests.php create mode 100644 mod/diagnostics/views/default/diagnostics/test.php create mode 100644 mod/diagnostics/views/default/diagnostics/testresult.php (limited to 'mod/diagnostics/views') diff --git a/mod/diagnostics/views/default/diagnostics/runalltests.php b/mod/diagnostics/views/default/diagnostics/runalltests.php new file mode 100644 index 000000000..12bbf2a4a --- /dev/null +++ b/mod/diagnostics/views/default/diagnostics/runalltests.php @@ -0,0 +1,15 @@ + 'execute', 'value' => elgg_echo('diagnostics:test:executeall'))); + + echo elgg_view('input/form', array('action' => $vars['url'] . "pg/diagnostics/tests/all", 'body' => $form_body)); +?> \ No newline at end of file diff --git a/mod/diagnostics/views/default/diagnostics/test.php b/mod/diagnostics/views/default/diagnostics/test.php new file mode 100644 index 000000000..5010eb903 --- /dev/null +++ b/mod/diagnostics/views/default/diagnostics/test.php @@ -0,0 +1,29 @@ + +
+
+ +
+
+ +
+
+ 'execute', 'value' => elgg_echo('diagnostics:test:executetest'))); + + echo elgg_view('input/form', array('action' => $vars['url'] . "pg/diagnostics/tests/{$vars['function']}", 'body' => $form_body)); + ?> +
+
\ No newline at end of file diff --git a/mod/diagnostics/views/default/diagnostics/testresult.php b/mod/diagnostics/views/default/diagnostics/testresult.php new file mode 100644 index 000000000..ddd688e93 --- /dev/null +++ b/mod/diagnostics/views/default/diagnostics/testresult.php @@ -0,0 +1,42 @@ +isSuccess()) + $successmessage = elgg_echo('diagnostics:unittester:testresult:success'); + else + $successmessage = elgg_echo('diagnostics:unittester:testresult:fail'); + } +?> +
+
+
+

:

+
+
+ getDetails(); ?> +
+
+ getDebug(); ?> +
+
+
\ No newline at end of file -- cgit v1.2.3