NZTA\Workplace\Test\MockWorkplaceService
Synopsis
class MockWorkplaceService
{
- // members
- public integer $groupID = 123;
- public integer $postID = 321;
- public integer $limit = 5;
- public array $userIDs = ;
- // methods
- public WorkplaceGateway getGateway()
- public string getMockResponse_homepagePosts()
- public string getMockResponse_postComments()
- public string getMockResponse_allGroups()
- public string getMockResponse_workplaceProfileInfo()
Members
public
- $groupID — int
- $limit — int
- $postID — int
- $userIDs — array
Methods
public
- getGateway()
- getMockResponse_allGroups()
- getMockResponse_homepagePosts() — Mocked response when hitting API endpoint used to retrieve posts from a specified group.
- getMockResponse_postComments() — Mocked response when hitting API endpoint used to retrieve comments from a specified post.
- getMockResponse_workplaceProfileInfo() — Mocked response when hitting API endpoint used to retrieve workplace profile details from a workplace user api.