diff --git a/tests/index.php b/tests/index.php
index a6f678b3bc2ca416d6efa8e19abc8c907221975f..6dec1b050fb35518dc2577bb685f9819ef54c6c1 100644
--- a/tests/index.php
+++ b/tests/index.php
@@ -30,7 +30,7 @@ require_once 'simpletest/default_reporter.php';
 loadTests(dirname(__FILE__));
 
 //load app test cases
-$apps=OC_Appconfig::getApps();
+$apps=OC_App::getEnabledApps();
 foreach($apps as $app){
 	if(is_dir(OC::$SERVERROOT.'/apps/'.$app.'/tests')){
 		loadTests(OC::$SERVERROOT.'/apps/'.$app.'/tests');