<?php

namespace Tests\Services\StoreService;

use App\Services\OrderService;
use App\Services\StoreService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class GetAsnSyncAtTest extends TestCase
{
    /**
     * @var StoreService $service
     */
    private $service;
    public function setUp(): void
    {
        parent::setUp(); // TODO: Change the autogenerated stub
        $this->service = app(StoreService::class);
    }

    /**
     * @test
     */
    public function getCreatedAsnSyncAt()
    {
        $key = config('sync.asn_sync.created_at');
        $data = $this->service->getAsnLastSyncAt($key,'create');
        $this->assertNotEmpty($data);
    }

    /**
     * @test
     */
    public function getUpdatedAsnSyncAt()
    {
        $key = config('sync.asn_sync.updated_at');
        $data = $this->service->getAsnLastSyncAt($key,'update');
        $this->assertNotEmpty($data);
    }
}
