mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
25 lines
635 B
PHP
25 lines
635 B
PHP
<?php
|
|
|
|
|
|
namespace Box\Mod\Page;
|
|
|
|
|
|
class ServiceTest extends \PHPUnit_Framework_TestCase {
|
|
|
|
public function testgetPairs()
|
|
{
|
|
$service = new \Box\Mod\Page\Service();
|
|
|
|
$themeService = $this->getMockBuilder('\Box\Mod\Theme\Service')->getMock();
|
|
$themeService->expects($this->atLeastOnce())
|
|
->method('getCurrentClientAreaThemeCode');
|
|
|
|
$di = new \Box_Di();
|
|
$di['mod_service'] = $di->protect(function() use ($themeService) {return $themeService;});
|
|
|
|
$service->setDi($di);
|
|
$result = $service->getPairs();
|
|
$this->assertInternalType('array', $result);
|
|
}
|
|
}
|
|
|