QueryTest.php 956 B

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