]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Removed elgg_test entries.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 6 Oct 2009 14:01:48 +0000 (14:01 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 6 Oct 2009 14:01:48 +0000 (14:01 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3511 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/diagnostics/start.php

index 1e05f2bee6b5bf8d505fc225c242416da85b6d12..34b86a9cd020e343d60d8c689a16f72e490c13b1 100644 (file)
                
                // Register some actions
                register_action("diagnostics/download",false, $CONFIG->pluginspath . "diagnostics/actions/download.php");
-               
-               // If debug on then enable an example test
-               if ((isset($CONFIG->debug)) && ($CONFIG->debug))
-               {
-                       register_elgg_test(elgg_echo('diagnostics:unittest:example'), 'diagnostics_test_test'); 
-               }
        }
        
        /**
                if (get_context() == 'admin' && isadminloggedin()) {
                        global $CONFIG;
                        add_submenu_item(elgg_echo('diagnostics'), $CONFIG->wwwroot . 'pg/diagnostics/');
-                       add_submenu_item(elgg_echo('diagnostics:unittester'), $CONFIG->wwwroot . 'pg/diagnostics/tests/');
                }
        }
        
-       function diagnostics_test_test()
-       {
-               ob_start();
-
-               for ($n = 0; $n<5; $n++)
-                       echo "$n ";
-               
-               return ElggTestResult::CreateSuccessResult(ob_get_clean());
-       }
-       
        /**
         * Diagnostics page.
         *
        
        register_plugin_hook("diagnostics:report", "all", "diagnostics_globals_hook"); // Global variables
        register_plugin_hook("diagnostics:report", "all", "diagnostics_phpinfo_hook"); // PHP info
-?>
\ No newline at end of file
+?>