<?php

namespace Tests\Services\OrderService\LogisticNumberFirstOrCreateOrderTest;

use App\OracleActAllocationDetails;
use App\OrderPackage;
use App\Services\OrderService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;

class LogisticNumberFirstOrCreateOrderTest extends TestCase
{
    /** @var OrderService $service */
    public $service;

    public function setUp(): void
    {
        $this->service=app(OrderService::class);
        parent::setUp(); // TODO: Change the autogenerated stub
    }
    public function testLogisticNumberFirstOrCreateOrder()
    {
        $logistic_number = OracleActAllocationDetails::query()->first()->picktotraceid;
        $order = $this->service->logisticNumberFirstOrCreateOrder($logistic_number);
        $this->assertNotEmpty($order);
    }
}
