| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace Tests\Services\LogisticAliJiSuApiService;
- use App\OrderPackage;
- use App\Services\LogisticYDService;
- use App\Services\LogisticYTOService;
- use Illuminate\Support\Facades\Http;
- use Tests\TestCase;
- class QueryTest extends TestCase
- {
- /**
- * @var LogisticYTOService $service
- */
- private $service;
- protected function setUp(): void
- {
- parent::setUp(); // TODO: Change the autogenerated stub
- $this->service = app('LogisticAliJiSuApiService');
- }
- /**
- * @test
- */
- public function prod_test()
- {
- $response = $this->service->query('4280174475389');
- if ($response->status==0){
- $this->assertNotEmpty($response->result);
- $this->assertEquals($response->result->number,'4280174475389');
- }
- $this->assertTrue(true);
- }
- }
|