UserGroupServiceTest.php 800 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Tests\Audience\Services;
  3. use Illuminate\Support\Facades\DB;
  4. use Modules\Audience\Services\UserGroupService;
  5. use PHPUnit\Framework\TestCase;
  6. class UserGroupServiceTest extends \Tests\TestCase
  7. {
  8. public function testGetSQL()
  9. {
  10. $tags = [
  11. // 'attention_hour' => '0-6',
  12. // 'in_48_hour' => 1,
  13. // 'interact_hour' => '0-6',
  14. 'last_watch_day' => '0-2',
  15. 'register_day' => '0-2',
  16. 'total_watch_day' => '0-2',
  17. 'charge_type' => 1,
  18. 'total_charge_money' => '1-1000',
  19. 'avg_charge_money' => '2-300',
  20. 'charge_num' => '1-1',
  21. 'remain_coin' => '0-1',
  22. 'last_charge_day' => '0-4',
  23. ];
  24. $sql = UserGroupService::getSQL($tags);
  25. }
  26. }