()
| 30 | private $shareService; |
| 31 | |
| 32 | protected function setUp(): void { |
| 33 | $this->config = $this->createMock(IConfig::class); |
| 34 | $this->config->method('getAppValue')->willReturn('1'); |
| 35 | |
| 36 | $this->urlGenerator = $this->createMock(IURLGenerator::class); |
| 37 | $this->urlGenerator->method('imagePath') |
| 38 | ->willReturnCallback(function ($app, $file) { |
| 39 | return '/apps/analytics/img/' . $file; |
| 40 | }); |
| 41 | $this->urlGenerator->method('getAbsoluteURL') |
| 42 | ->willReturnCallback(function ($url) { |
| 43 | return 'https://cloud.example.com' . $url; |
| 44 | }); |
| 45 | |
| 46 | $this->reportService = $this->createMock(ReportService::class); |
| 47 | $this->panoramaService = $this->createMock(PanoramaService::class); |
| 48 | $this->shareService = $this->createMock(ShareService::class); |
| 49 | } |
| 50 | |
| 51 | private function buildProvider(): ReferenceProvider { |
| 52 | return new ReferenceProvider( |
nothing calls this directly
no outgoing calls
no test coverage detected