| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace Tests\Services\LogisticYTOService;
- 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('LogisticYTOService');
- }
- /**
- * @test
- */
- public function prod_test()
- {
- $response = $this->service->query('YT5487281295636');
- if (is_object($response))$this->assertEquals('1001', $response->code);
- if (!is_object($response))$this->assertNotEmpty($response);
- }
- }
|