| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace LogisticYTOService;
- use App\OrderPackage;
- use App\Services\LogisticYDService;
- use Illuminate\Support\Facades\Http;
- use Tests\TestCase;
- class QueryTest extends TestCase
- {
- /**
- * @var $service LogisticYDService
- */
- private $service;
- protected function setUp(): void
- {
- parent::setUp(); // TODO: Change the autogenerated stub
- $this->service = app('LogisticYTOService');
- }
- /**
- * @test
- */
- public function prod_test()
- {
- // 'YT5481469185320';YT3153735030684
- $response = $this->service->query('YT5481469185320');
- dump($response);
- if (is_object($response))$this->assertEquals('1001', $response->code);
- if (!is_object($response))$this->assertNotEmpty($response);
- }
- }
|