25 protected function setUp() : void
40 $_SESSION[
'UserId'] = $userId;
42 assertThat($this->userInfo->getUserId(), is($userId));
55 $_SESSION[
'GroupId'] = $groupId;
57 assertThat($this->userInfo->getGroupId(), is($groupId));
Unit tests for UserInfo class.
testGetUserId()
Test for UserInfo::getUserId()
setUp()
One time setup for test.
testGetGroupId()
Test for UserInfo::getGroupId()
Get user info from session.
Utility functions for specific applications.