- $this->mockSelectFirst('user',
- ['uid', 'nickname', 'username', 'parent-uid'],
- ['uid' => $this->parent['uid']],
- $this->parent,
- 1
- );
- $this->mockIsResult($this->parent, false, 1);
+ $this->dbMock->shouldReceive('selectFirst')->with('user',
+ ['uid', 'nickname', 'username', 'parent-uid'],['uid' => $this->parent['uid']], [])->andReturn($this->parent)->once();
+ $this->dbMock->shouldReceive('isResult')->with($this->parent)->andReturn(false)->once();