<?php


namespace LogisticYDService;

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('LogisticYDService');

    }


    /**
     * @test
     */
    public function queryTest()
    {
        $this->service->query('340987657890876');
    }


    /**
     * @test
     */
    public function prod_test()
    {
       $response = $this->service->query('4314519335027');
        dump($response);
        $this->assertEquals('0000', $response->code);
    }
}
