| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace Tests\Services\OrderService;
- use App\Services\OrderService;
- use Tests\TestCase;
- class GetOrderSyncAtTest extends TestCase
- {
- /**
- * @var OrderService $service
- */
- private $service;
- public function setUp(): void
- {
- parent::setUp(); // TODO: Change the autogenerated stub
- $this->service = app('OrderService');
- }
- public function testGetOrderSyncAt()
- {
- $key = config('sync.order_sync.cache_prefix.created_at');
- $data = $this->service->getOrderSyncAt($key);
- $this->assertNotEmpty($data);
- }
- /**+
- * @test
- */
- public function getCreatedSyncAt()
- {
- $key = config('sync.order_sync.cache_prefix.updated_at');
- $data = $this->service->getOrderSyncAt($key,'renewal');
- $this->assertNotEmpty($data);
- }
- public function tearDown(): void
- {
- parent::tearDown(); // TODO: Change the autogenerated stub
- }
- }
|