LogisticYDSyncTest.php 923 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace Tests\Services\LogisticYDService;
  3. use App\Jobs\LogisticYDSync;
  4. use App\OrderPackage;
  5. use App\Services\LogisticYDService;
  6. use Tests\TestCase;
  7. use App\Traits\TestMockSubServices;
  8. class LogisticYDSyncTest extends TestCase
  9. {
  10. use TestMockSubServices;
  11. /** @var LogisticYDService $service */
  12. public $service;
  13. private $data;
  14. private $amount=2;
  15. function setUp(): void
  16. {
  17. parent::setUp();
  18. $this->service = app('LogisticYDService');
  19. }
  20. public function testReturned()
  21. {
  22. $this->assertTrue(true);
  23. }
  24. function tearDown(): void
  25. {
  26. parent::tearDown();
  27. }
  28. /**
  29. * @test
  30. */
  31. public function sync_test()
  32. {
  33. // LogisticYDSync::dispatch('4280189118692');
  34. // $this->assertTrue(OrderPackage::query()->where('logistic_number','4314543143889')->first()->transfer_status);
  35. $this->assertTrue(true);
  36. }
  37. }