createMock(\Box\Mod\Theme\Service::class); $themeService->expects($this->atLeastOnce()) ->method('getCurrentClientAreaThemeCode') ->willReturn('huraga'); $di = $this->getDi(); $di['mod_service'] = $di->protect(fn (): \PHPUnit\Framework\MockObject\MockObject => $themeService); $service->setDi($di); $result = $service->getPairs(); $this->assertIsArray($result); } }