From: Michael Date: Fri, 8 Sep 2023 16:45:59 +0000 (+0000) Subject: Fix test? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=97e3ff1901e9a3cb673e499799d588733ac53528;p=friendica.git Fix test? --- diff --git a/tests/src/Model/UserTest.php b/tests/src/Model/UserTest.php index e7b1e04583..6804825706 100644 --- a/tests/src/Model/UserTest.php +++ b/tests/src/Model/UserTest.php @@ -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