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

Method setUp

tests/Reference/ReferenceProviderTest.php:32–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected