12345678910111213141516171819202122232425262728 |
- <?php
- use PHPUnit\Framework\TestCase;
- define('APP_ID', 'test');
- define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/global.php');
- require_once(BASE_CORE_PATH . '/lrlz.php');
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_HELPER_PATH . '/refill/policy/mgroup.php');
- class TestMgroup extends TestCase
- {
- public static function setUpBeforeClass(): void
- {
- Base::run_util();
- }
- public function testMerchantGroup()
- {
- $rgroup_ctl = new refill\rgroup_ctl();
- [$hasGroup,$channels] = $rgroup_ctl->find_providers(1092, 50, 4, 1);
- $names = ['lingzh','yunling','qianqian'];
- $ret = array_intersect($names,$channels);
- }
- }
|