Domain\Employee\Http\EmployeeControllerTest::test_force_delete_real PHP Method

test_force_delete_real() public method

    public function test_force_delete_real()
    {
        $employee = factory(Employee::class)->create();
        $controller = App::make(EmployeeController::class);
        $forceDelete = $controller->forceDelete($employee->id);
        $repo = App::make(EmployeeRepository::class);
        $this->setExpectedException(RepositoryException::class);
        $get = $repo->withTrashed()->get($employee->id);
    }