" . elgg_echo('diagnostics:unittester:description') . "

"; $unit_tests .= "

" . elgg_echo('diagnostics:unittester:warning') . "

"; if (elgg_get_config('debug')) { // create a button to run tests $params = array( 'text' => elgg_echo('diagnostics:test:executeall'), 'href' => elgg_get_site_url() . 'engine/tests/suite.php', 'class' => 'elgg-button-submit', ); $unit_tests .= elgg_view('output/url', $params); } else { // no tests when not in debug mode $unit_tests .= elgg_echo('diagnostics:unittester:debug'); } // display admin body echo <<

$diagnostics_title

$diagnostics

$unit_tests_title

$unit_tests
HTML;