<?php

namespace Tests\Services\OrderIssueService;

use App\OrderIssue;
use App\Services\OrderIssueService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class GetRecycleBinPaginateTest extends TestCase
{
    /**
     * @var OrderIssueService $service
     */
    public $service;
    public $data = [];
    public function setUp(): void
    {
        parent::setUp(); // TODO: Change the autogenerated stub
        $this->service = app('OrderIssueService');
        $orderIssue = factory(OrderIssue::class)->create([
            'is_new_rejecting' => '无',
            'rejecting_status' => '无',
            'imported_status' => '正常',
        ]);
        $orderIssue->delete();
    }

    public function testGetRecycleBinPaginate()
    {
        $orderIssue = $this->service->getRecycleBinPaginate([]);
        $this->assertNotEmpty($orderIssue);
    }
}
