Files
FOSSBilling/tests-legacy/modules/Page/ServiceTest.php
T
Belle Aerni ccc97a3ec9 Initial implementation of CI against a live FOSSBilling Install (#2067)
* Rename tests to tests-legacy

* Groundwork for live tests

* Somewhat working tests on a live instance

* Hmmmmmm

* Fix

* Fixed the other bug

* Added a handful of various tests

* Typos, all these are admin endpoints

* Bypass this check for testing envs

* Disable it for now

* Mini cleanup

* Cleanup from debugging, ran PHP-CS-Fixer
2024-01-14 22:51:32 -08:00

23 lines
577 B
PHP

<?php
namespace Box\Mod\Page;
class ServiceTest extends \BBTestCase
{
public function testgetPairs()
{
$service = new Service();
$themeService = $this->getMockBuilder('\\' . \Box\Mod\Theme\Service::class)->getMock();
$themeService->expects($this->atLeastOnce())
->method('getCurrentClientAreaThemeCode');
$di = new \Pimple\Container();
$di['mod_service'] = $di->protect(fn () => $themeService);
$service->setDi($di);
$result = $service->getPairs();
$this->assertIsArray($result);
}
}