QueryTest.php 834 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Tests\Services\LogisticYDService;
  3. use App\OrderPackage;
  4. use App\Services\LogisticYDService;
  5. use Illuminate\Support\Facades\Http;
  6. use Tests\TestCase;
  7. class QueryTest extends TestCase
  8. {
  9. /**
  10. * @var $service LogisticYDService
  11. */
  12. private $service;
  13. protected function setUp(): void
  14. {
  15. parent::setUp(); // TODO: Change the autogenerated stub
  16. $this->service = app('LogisticYDService');
  17. }
  18. /**
  19. * @test
  20. */
  21. public function queryTest()
  22. {
  23. // $this->service->query('340987657890876');
  24. $this->assertTrue(true);
  25. }
  26. /**
  27. * @test
  28. */
  29. // public function prod_test()
  30. // {
  31. // $response = $this->service->query('4314519335027');
  32. // dump($response);
  33. // $this->assertEquals('0000', $response->code);
  34. // }
  35. }