ROITJControllerTest.php 941 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Tests\Statistic\Http\Controllers;
  3. use PHPUnit\Framework\TestCase;
  4. use Tests\UsedTestCase;
  5. class ROITJControllerTest extends UsedTestCase
  6. {
  7. public function testList()
  8. {
  9. $res = $this->withHeaders([
  10. 'Authorization' => 'Bearer '. $this->token,
  11. ])->json('get','http://localhost/api/statistic/roi/list', [
  12. // 'user_id' => 10,
  13. 'limit' => 3,
  14. // 'start_at' => '2023-06-03',
  15. // 'end_at' => '2023-06-04',
  16. ]);
  17. $this->dumpJson($res);
  18. }
  19. public function testlistTotal()
  20. {
  21. $res = $this->withHeaders([
  22. 'Authorization' => 'Bearer '. $this->token,
  23. ])->json('get','http://localhost/api/statistic/roi/listTotal', [
  24. // 'user_id' => 10,
  25. 'limit' => 3,
  26. // 'start_at' => '2023-06-03',
  27. // 'end_at' => '2023-06-04',
  28. ]);
  29. $this->dumpJson($res);
  30. }
  31. }