From 0d852dce3b060537ceb1418d97d00426f437527c Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Sat, 11 May 2013 22:44:45 +0200 Subject: [PATCH] Use new autoloader class --- tests/lib/public/contacts.php | 2 -- tests/lib/template.php | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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 = "";