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 14:11:51 +0300
committersgiehl <stefan@matomo.org>2020-03-23 14:11:51 +0300
commit87679d1454a876f3ceddf4b9b4db71ba04366639 (patch)
treebbdb85b3e1c4070d24215f812748371060d698fb /plugins/UsersManager
parent22766aeceac9997f09efa49e559272b8c4e2f31e (diff)
fix test
Diffstat (limited to 'plugins/UsersManager')
-rw-r--r--plugins/UsersManager/tests/Integration/ModelTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/UsersManager/tests/Integration/ModelTest.php b/plugins/UsersManager/tests/Integration/ModelTest.php
index aea55533d7..b961e467ec 100644
--- a/plugins/UsersManager/tests/Integration/ModelTest.php
+++ b/plugins/UsersManager/tests/Integration/ModelTest.php
@@ -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, (int) $tokens[0]['idusertokenauth']);
- $this->assertSame($id3, (int) $tokens[1]['idusertokenauth']);
+ $this->assertEquals($id2, $tokens[0]['idusertokenauth']);
+ $this->assertEquals($id3, $tokens[1]['idusertokenauth']);
$this->assertCount(2, $tokens);
$tokens = $this->model->getAllNonSystemTokensForLogin($this->login2);
- $this->assertSame($id4, (int) $tokens[0]['idusertokenauth']);
- $this->assertSame($id5, (int) $tokens[1]['idusertokenauth']);
+ $this->assertEquals($id4, $tokens[0]['idusertokenauth']);
+ $this->assertEquals($id5, $tokens[1]['idusertokenauth']);
$this->assertCount(2, $tokens);
}