Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Integration/API/RequestTest.php')
-rw-r--r--tests/PHPUnit/Integration/API/RequestTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/API/RequestTest.php b/tests/PHPUnit/Integration/API/RequestTest.php
index aab254cd6f..dfdb21f4fd 100644
--- a/tests/PHPUnit/Integration/API/RequestTest.php
+++ b/tests/PHPUnit/Integration/API/RequestTest.php
@@ -10,7 +10,6 @@ namespace Piwik\Tests\Integration\API;
use Piwik\API\Request;
use Piwik\AuthResult;
-use Piwik\Container\StaticContainer;
use Piwik\Db;
use Piwik\Tests\Framework\TestCase\IntegrationTestCase;
@@ -121,7 +120,9 @@ class RequestTest extends IntegrationTestCase
private function createAuthMock()
{
- $authMock = $this->getMock('Piwik\Plugins\Login\Auth', array('authenticate', 'setTokenAuth', 'setLogin'));
+ $authMock = $this->getMockBuilder('Piwik\Plugins\Login\Auth')
+ ->setMethods(array('authenticate', 'setTokenAuth', 'setLogin'))
+ ->getMock();
$authMock->expects($this->any())
->method('authenticate')