<?php

namespace LogisticQiaoSFService;

use App\Services\LogisticSFService;
use Tests\TestCase;

class LogisticQiaoSFServiceTest extends TestCase
{
    protected $logisticQiaoSFService;

    protected function setUp(): void
    {
        parent::setUp(); // TODO: Change the autogenerated stub
        $this->logisticQiaoSFService = new LogisticSFService();
        \App\OrderPackage::query()->whereIn('logistic_number', ['SF1335376515904', 'SF2050377278135', 'SF2060390000049'])->delete();
    }


    /**
     * @test
     */
    public function testGet()
    {
//        factory(\App\OrderPackage::class)->create(['logistic_number' => 'SF1335376515904',]);
//        factory(\App\OrderPackage::class)->create(['logistic_number' => 'SF2050377278135',]);
//        factory(\App\OrderPackage::class)->create(['logistic_number' => 'SF2060390000049',]);
        $response = $this->logisticQiaoSFService->get(['SF1333381646256']);
//        $this->assertCount(3, $response);
        $this->assertTrue(true);
    }
}
