Domain\Classroom\ClassroomRepositoryTest::test_force_delete PHP Method

test_force_delete() public method

public test_force_delete ( )
    public function test_force_delete()
    {
        $repo = App::make(ClassroomRepository::class);
        $classroom = factory(Classroom::class)->create();
        $repo->forceDelete($classroom->id);
        $this->setExpectedException(RepositoryException::class);
        $trashed = $repo->onlyTrashed()->get($classroom->id);
    }