| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace Tests\Services\LogisticAliJiSuApiService;
- use App\Services\LogisticYDService;
- use App\Services\LogisticYTOService;
- use BeyondCode\DumpServer\DumpServerServiceProvider;
- use Tests\TestCase;
- use App\LogisticYD;
- use App\Traits\TestMockSubServices;
- class FormatTest extends TestCase
- {
- use TestMockSubServices;
- /** @var LogisticYTOService $service */
- public $service;
- private $data;
- private $amount = 2;
- function setUp(): void
- {
- parent::setUp();
- $this->service = app('LogisticAliJiSuApiService');
- }
- /**
- * @test
- */
- public function format_test()
- {
- $response=$this->service->query('9882714987042');
- if ($response && $response->status==0){
- $result = $this->service->format($response);
- $this->assertNotEmpty($result);
- }
- }
- }
|