Domain\Employee\Http\EmployeeControllerTest::test_restore_real PHP Метод

test_restore_real() публичный Метод

public test_restore_real ( )
    public function test_restore_real()
    {
        $employee = factory(Employee::class)->create();
        $employee->delete();
        $controller = App::make(EmployeeController::class);
        $restore = $controller->restore($employee->id);
        $this->assertEquals(1, $restore);
        $repo = App::make(EmployeeRepository::class);
        $get = $repo->get($employee->id);
        $this->assertInstanceOf(Employee::class, $get);
        $this->assertNull($get->deleted_at);
    }