LogisticZopServiceTest.php 825 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace LogisticZopService;
  3. use App\Services\LogisticZopService;
  4. use Carbon\Carbon;
  5. use Tests\TestCase;
  6. class LogisticZopServiceTest extends TestCase
  7. {
  8. protected $logisticZopService;
  9. protected function setUp(): void
  10. {
  11. parent::setUp(); // TODO: Change the autogenerated stub
  12. $this->logisticZopService = new LogisticZopService();
  13. }
  14. protected function tearDown(): void
  15. {
  16. parent::tearDown(); // TODO: Change the autogenerated stub
  17. }
  18. /**
  19. * @test
  20. */
  21. public function get_test()
  22. {
  23. $result = $this->logisticZopService->get(['75451837176537']);
  24. dd($result);
  25. }
  26. /**
  27. * @test
  28. */
  29. public function carbon_test()
  30. {
  31. $result =Carbon::parse(1617293640000)->toDateTimeString();
  32. dd($result);
  33. }
  34. }