aboutsummaryrefslogtreecommitdiff
path: root/mod/diagnostics/views/default
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-17 15:32:23 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-17 15:32:23 +0000
commitccb5a69319a6a367988534296c678c8abf322879 (patch)
tree39e16ed3a8f4c70e68cd6bc9ac76b49d177d5ad8 /mod/diagnostics/views/default
parent287ea7790c170e4f5c13c721e759f1a37ed5ef02 (diff)
downloadelgg-ccb5a69319a6a367988534296c678c8abf322879.tar.gz
elgg-ccb5a69319a6a367988534296c678c8abf322879.tar.bz2
Fixes #1526: Big honking warning added to unit tests. Getter test also deletes its subtypes now.
git-svn-id: http://code.elgg.org/elgg/trunk@3945 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/diagnostics/views/default')
-rw-r--r--mod/diagnostics/views/default/diagnostics/test.php27
-rw-r--r--mod/diagnostics/views/default/diagnostics/testresult.php40
2 files changed, 0 insertions, 67 deletions
diff --git a/mod/diagnostics/views/default/diagnostics/test.php b/mod/diagnostics/views/default/diagnostics/test.php
deleted file mode 100644
index 7546e6024..000000000
--- a/mod/diagnostics/views/default/diagnostics/test.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
- /**
- * Elgg diagnostics
- *
- * @package ElggDiagnostics
- * @author Curverider Ltd
- * @link http://elgg.com/
- */
-
-
-?>
-<div class="test">
- <div class="test_header">
- <b><?php echo $vars['function']; ?></b>
- </div>
- <div class="test_description">
- <?php echo $vars['description']; ?>
- </div>
- <div class="test_button">
- <?php
-
- $form_body = elgg_view('input/submit', array('internalname' => 'execute', 'value' => elgg_echo('diagnostics:test:executetest')));
-
- echo elgg_view('input/form', array('action' => $vars['url'] . "pg/diagnostics/tests/{$vars['function']}", 'body' => $form_body));
- ?>
- </div>
-</div> \ No newline at end of file
diff --git a/mod/diagnostics/views/default/diagnostics/testresult.php b/mod/diagnostics/views/default/diagnostics/testresult.php
deleted file mode 100644
index 8db769f1d..000000000
--- a/mod/diagnostics/views/default/diagnostics/testresult.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
- /**
- * Elgg diagnostics - test report
- *
- * @package ElggDiagnostics
- * @author Curverider Ltd
- * @link http://elgg.com/
- */
-
- $result = $vars['result'];
-
- $testresult_div = 'fail';
- $successmessage = "";
-
- if (!($result instanceof ElggTestResult))
- {
- $successmessage = elgg_echo('diagnostics:unittester:testresult:nottestclass');
- $result = ElggTestResult::CreateFailResult(elgg_echo('diagnostics:unittester:testresult:fail'));
- }
- else
- {
- if ($result->isSuccess())
- $successmessage = elgg_echo('diagnostics:unittester:testresult:success');
- else
- $successmessage = elgg_echo('diagnostics:unittester:testresult:fail');
- }
-?>
-<div class="testreport">
- <div class="testreport_<?php echo $testresult_div; ?>">
- <div class="testreport_header">
- <p><b><?php echo $vars['function']; ?> : </b><?php echo $successmessage; ?></p>
- </div>
- <div class="testreport_details">
- <?php echo $result->getDetails(); ?>
- </div>
- <div class="testreport_debug">
- <?php echo $result->getDebug(); ?>
- </div>
- </div>
-</div> \ No newline at end of file