TestMgroup.php 769 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use PHPUnit\Framework\TestCase;
  3. define('APP_ID', 'test');
  4. define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
  5. require_once(BASE_ROOT_PATH . '/global.php');
  6. require_once(BASE_CORE_PATH . '/lrlz.php');
  7. require_once(BASE_ROOT_PATH . '/fooder.php');
  8. require_once(BASE_HELPER_PATH . '/refill/policy/mgroup.php');
  9. class TestMgroup extends TestCase
  10. {
  11. public static function setUpBeforeClass(): void
  12. {
  13. Base::run_util();
  14. }
  15. public function testMerchantGroup()
  16. {
  17. $rgroup_ctl = new refill\rgroup_ctl();
  18. [$hasGroup,$channels] = $rgroup_ctl->find_providers(1092, 50, 4, 1);
  19. $names = ['lingzh','yunling','qianqian'];
  20. $ret = array_intersect($names,$channels);
  21. }
  22. }