['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();
$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();
['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();