GetTest.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace LaborReportsCountingRecordService;
  3. use App\Services\CacheService;
  4. use App\Services\LaborReportsCountingRecordService;
  5. use App\Services\OrderCountingRecordService;
  6. use Illuminate\Support\Facades\Cache;
  7. use Tests\TestCase;
  8. class GetTest extends TestCase
  9. {
  10. /** @var LaborReportsCountingRecordService $laborReportsCountingRecordService */
  11. public $laborReportsCountingRecordService;
  12. public function setUp(): void
  13. {
  14. parent::setUp();
  15. $this->laborReportsCountingRecordService = new LaborReportsCountingRecordService();
  16. }
  17. public function testGet()
  18. {
  19. $this->assertTrue(true);
  20. }
  21. // public function testGet日()
  22. // {
  23. // $start = '2020-11-08';
  24. // $end = '2020-12-19';
  25. // $unit = '日';
  26. // $result = $this->laborReportsCountingRecordService->get($start, $end, $unit);
  27. // self::assertTrue($result->isNotEmpty());
  28. // }
  29. //
  30. // public function testGet周()
  31. // {
  32. // $start = '2020-11-08';
  33. // $end = '2020-12-19';
  34. // $unit = '周';
  35. // $result = $this->laborReportsCountingRecordService->get($start, $end, $unit);
  36. // self::assertTrue($result->isNotEmpty());
  37. // }
  38. //
  39. // public function testGet月()
  40. // {
  41. // $start = '2020-08-01';
  42. // $end = '2020-11-1';
  43. // $unit = '月';
  44. // $result = $this->laborReportsCountingRecordService->get($start, $end, $unit);
  45. // self::assertTrue($result->isNotEmpty());
  46. // }
  47. }