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:
authorsgiehl <stefan@matomo.org>2020-03-23 13:35:26 +0300
committersgiehl <stefan@matomo.org>2020-03-23 13:35:26 +0300
commit22766aeceac9997f09efa49e559272b8c4e2f31e (patch)
treee7004ee3c3205e0ee786a3fd6e973ec320836eb1 /plugins/UsersManager
parentdf468ba85e5e4fcf32f44208971f5e062e60a93e (diff)
fix integration test
Diffstat (limited to 'plugins/UsersManager')
-rw-r--r--plugins/UsersManager/tests/Integration/ModelTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/UsersManager/tests/Integration/ModelTest.php b/plugins/UsersManager/tests/Integration/ModelTest.php
index 0a99be16de..aea55533d7 100644
--- a/plugins/UsersManager/tests/Integration/ModelTest.php
+++ b/plugins/UsersManager/tests/Integration/ModelTest.php
@@ -6,7 +6,7 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
-namespace Piwik\Plugins\UsersManager\tests;
+namespace Piwik\Plugins\UsersManager\tests\Integration;
use Piwik\Access\Role\View;
use Piwik\Access\Role\Write;
@@ -359,13 +359,13 @@ class ModelTest extends IntegrationTestCase
$this->model->deleteExpiredTokens('2021-01-02 03:04:05');
$tokens = $this->model->getAllNonSystemTokensForLogin($this->login);
- $this->assertSame($id2, $tokens[0]['idusertokenauth']);
- $this->assertSame($id3, $tokens[1]['idusertokenauth']);
+ $this->assertSame($id2, (int) $tokens[0]['idusertokenauth']);
+ $this->assertSame($id3, (int) $tokens[1]['idusertokenauth']);
$this->assertCount(2, $tokens);
$tokens = $this->model->getAllNonSystemTokensForLogin($this->login2);
- $this->assertSame($id4, $tokens[0]['idusertokenauth']);
- $this->assertSame($id5, $tokens[1]['idusertokenauth']);
+ $this->assertSame($id4, (int) $tokens[0]['idusertokenauth']);
+ $this->assertSame($id5, (int) $tokens[1]['idusertokenauth']);
$this->assertCount(2, $tokens);
}