QueryTest.php 905 B

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