Skip to content

Disable DB connection inside the constructor #15

@xJuvi

Description

@xJuvi

Currently, it is not possible to mock the class because the database connection is already initiated in the constructor. This must be prevented either by means of parameters or environment variables so that simple unit tests can be created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions