MCPcopy Create free account
hub / github.com/Rello/analytics / controller

Method controller

tests/Controller/ApiControllerTest.php:19–21  ·  view source on GitHub ↗
($reports, $shares, $output, $apiData = null)

Source from the content-addressed store, hash-verified

17
18class ApiControllerTest extends TestCase {
19 private function controller($reports, $shares, $output, $apiData = null): ApiController {
20 return new ApiController('analytics', $this->createMock(IRequest::class), $this->createMock(\Psr\Log\LoggerInterface::class), $reports, $shares, $output, $apiData ?? $this->createMock(ApiDataController::class));
21 }
22
23 public function testListIncludesSharedReportsAndOmitsFolders(): void {
24 $reports = $this->createMock(ReportService::class);

Calls

no outgoing calls

Tested by

no test coverage detected