diff --git a/tests/lib/public/contacts.php b/tests/lib/public/contacts.php
index ce5d762226..d6008876a0 100644
--- a/tests/lib/public/contacts.php
+++ b/tests/lib/public/contacts.php
@@ -19,8 +19,6 @@
* License along with this library. If not, see .
*/
-OC::autoload('OCP\Contacts');
-
class Test_Contacts extends PHPUnit_Framework_TestCase
{
diff --git a/tests/lib/template.php b/tests/lib/template.php
index 6e88d4c07f..fd12119da5 100644
--- a/tests/lib/template.php
+++ b/tests/lib/template.php
@@ -20,10 +20,13 @@
*
*/
-OC::autoload('OC_Template');
-
class Test_TemplateFunctions extends PHPUnit_Framework_TestCase {
+ public function setUp() {
+ $loader = new \OC\Autoloader();
+ $loader->load('OC_Template');
+ }
+
public function testP() {
// FIXME: do we need more testcases?
$htmlString = "";