Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resurrect unit tests #408

Merged
merged 6 commits into from
Sep 14, 2024
Merged

Resurrect unit tests #408

merged 6 commits into from
Sep 14, 2024

Conversation

hakito
Copy link
Contributor

@hakito hakito commented Sep 1, 2024

The unit tests seem to be broken for quite a long time. This makes it difficult to contribute to the project without breaking something essential.

So this PR is focused on fixing the phpunit tests. It covers the following changes.

  • Add phpunit 11 to composer
  • Fix the most obvious deprecation warnings
  • Fix the tests and adapt them to phpunit 11
  • Add some missing implementations and interface definitions
  • Run tests in github workflow

I also adapted the script part in the composer.json. However without the .phive environment the lint call will fail because of the missing tools directory.

Actually I'd suggest to get rid of the .phive stuff.

Gerd Katzenbeisser added 5 commits August 31, 2024 07:16
Adapt path for phpunit script
The entire helper class does not seem useful to me. I Just made it work.
@hakito hakito force-pushed the develop branch 4 times, most recently from 497ddb8 to 3354db5 Compare September 1, 2024 09:52
@JohnVillalovos
Copy link
Contributor

I haven't reviewed but really like the idea of getting working unit tests. Thank you!

@effgarces
Copy link
Collaborator

Great work, I really wanted to bring back unit tests, but it was really in my list os priorities, so thank you for your contribution

@effgarces effgarces merged commit b7331a8 into LibreBooking:develop Sep 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants