OrderCountingRecordServiceOrderCountingRecordsTest.php 762 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Tests\Services\OrderCountingRecordService;
  3. use App\Services\CacheService;
  4. use App\Services\OrderCountingRecordService;
  5. use Tests\TestCase;
  6. class OrderCountingRecordServiceOrderCountingRecordsTest extends TestCase
  7. {
  8. /** @var OrderCountingRecordService $orderCountingRecordService */
  9. public $orderCountingRecordService;
  10. public function setUp(): void
  11. {
  12. parent::setUp();
  13. app()->singleton('CacheService', CacheService::class);
  14. $this->orderCountingRecordService = app(OrderCountingRecordService::class);
  15. }
  16. public function testGet()
  17. {
  18. $start = '2020-11-03';
  19. $end = '2020-11-09';
  20. dd($this->orderCountingRecordService->orderCountingRecords($start, $end, null));
  21. }
  22. }