]> git.mxchange.org Git - friendica.git/commitdiff
Fix test?
authorMichael <heluecht@pirati.ca>
Fri, 8 Sep 2023 16:45:59 +0000 (16:45 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 8 Sep 2023 16:45:59 +0000 (16:45 +0000)
tests/src/Model/UserTest.php

index e7b1e045838349331a0c8d04ced66d52330c2eb2..68048257060223adfd0afd31da3297090672e8b0 100644 (file)
@@ -83,7 +83,7 @@ class UserTest extends MockedTest
        public function testIdentitiesEmpty()
        {
                $this->dbMock->shouldReceive('selectFirst')->with('user',
-                       ['uid', 'nickname', 'username', 'parent-uid'],['uid' => $this->parent['uid']], [])->andReturn($this->parent)->once();
+                       ['uid', 'nickname', 'username', 'parent-uid'],['uid' => $this->parent['uid'], 'verified' => true, 'blocked' => false, 'account_removed' => false, 'account_expired' => false], [])->andReturn($this->parent)->once();
                $this->dbMock->shouldReceive('isResult')->with($this->parent)->andReturn(false)->once();
 
                $record = User::identities($this->parent['uid']);
@@ -98,7 +98,7 @@ class UserTest extends MockedTest
 
                // Select the user itself (=parent)
                $this->dbMock->shouldReceive('selectFirst')->with('user',
-                       ['uid', 'nickname', 'username', 'parent-uid'],['uid' => $this->parent['uid']], [])->andReturn($parentSelect)->once();
+                       ['uid', 'nickname', 'username', 'parent-uid'],['uid' => $this->parent['uid'], 'verified' => true, 'blocked' => false, 'account_removed' => false, 'account_expired' => false], [])->andReturn($parentSelect)->once();
                $this->dbMock->shouldReceive('isResult')->with($parentSelect)->andReturn(true)->once();
 
                // Select one child
@@ -132,7 +132,7 @@ class UserTest extends MockedTest
 
                // Select the user itself (=child)
                $this->dbMock->shouldReceive('selectFirst')->with('user',
-                       ['uid', 'nickname', 'username', 'parent-uid'],['uid' => $this->child['uid']], [])->andReturn($childSelect)->once();
+                       ['uid', 'nickname', 'username', 'parent-uid'],['uid' => $this->child['uid'], 'verified' => true, 'blocked' => false, 'account_removed' => false, 'account_expired' => false], [])->andReturn($childSelect)->once();
                $this->dbMock->shouldReceive('isResult')->with($childSelect)->andReturn(true)->once();
 
                // Select the parent