From 5cc1f87511dde954afa09fb42fad89827d8b3554 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 9 Sep 2023 09:59:30 +0000 Subject: [PATCH] Fix tests? --- tests/src/Model/UserTest.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/src/Model/UserTest.php b/tests/src/Model/UserTest.php index 6804825706..542288d71f 100644 --- a/tests/src/Model/UserTest.php +++ b/tests/src/Model/UserTest.php @@ -106,7 +106,10 @@ class UserTest extends MockedTest ['uid', 'username', 'nickname'], [ 'parent-uid' => $this->parent['uid'], - 'account_removed' => false + 'verified' => true, + 'blocked' => false, + 'account_removed' => false, + 'account_expired' => false ], [])->andReturn('objectReturn')->once(); $this->dbMock->shouldReceive('isResult')->with('objectReturn')->andReturn(true)->once(); $this->dbMock->shouldReceive('toArray')->with('objectReturn', true, 0)->andReturn([$this->child])->once(); @@ -139,8 +142,11 @@ class UserTest extends MockedTest $this->dbMock->shouldReceive('select')->with('user', ['uid', 'username', 'nickname'], [ - 'uid' => $this->parent['uid'], - 'account_removed' => false + 'uid' => $this->parent['uid'], + 'verified' => true, + 'blocked' => false, + 'account_removed' => false, + 'account_expired' => false ], [])->andReturn('objectReturn')->once(); $this->dbMock->shouldReceive('isResult')->with('objectReturn')->andReturn(true)->once(); $this->dbMock->shouldReceive('toArray')->with('objectReturn', true, 0)->andReturn([$this->parent])->once(); @@ -150,7 +156,10 @@ class UserTest extends MockedTest ['uid', 'username', 'nickname'], [ 'parent-uid' => $this->parent['uid'], - 'account_removed' => false + 'verified' => true, + 'blocked' => false, + 'account_removed' => false, + 'account_expired' => false ], [])->andReturn('objectReturn')->once(); $this->dbMock->shouldReceive('isResult')->with('objectReturn')->andReturn(true)->once(); $this->dbMock->shouldReceive('toArray')->with('objectReturn', true, 0)->andReturn([$this->child, $this->manage])->once();