From 00ee4f4c5c13c061ff31ce11a44d2b4f483ea4da Mon Sep 17 00:00:00 2001
From: mattpiwik <matthieu.aubry@gmail.com>
Date: Wed, 21 Nov 2012 22:37:35 +0000
Subject: [PATCH] Tidy but still tests should pass

git-svn-id: http://dev.piwik.org/svn/trunk@7520 59fd770c-687e-43c8-a1e3-f5a4ff64c105
---
 tests/PHPUnit/IntegrationTestCase.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tests/PHPUnit/IntegrationTestCase.php b/tests/PHPUnit/IntegrationTestCase.php
index 92fc50ccbc..d90832fcc2 100755
--- a/tests/PHPUnit/IntegrationTestCase.php
+++ b/tests/PHPUnit/IntegrationTestCase.php
@@ -516,11 +516,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase
 	 */
 	public static function getTokenAuth()
 	{
-        // get token auth
-	    $pwd = Zend_Registry::get('config')->superuser->password;
-
-	    return Piwik_UsersManager_API::getInstance()->getTokenAuth(
-	        Zend_Registry::get('config')->superuser->login, $pwd);
+	    return md5(Zend_Registry::get('config')->superuser->login . Zend_Registry::get('config')->superuser->password);
     }
 
     /**
-- 
GitLab