-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Adds unit-tests for models (#1287)
This adds model tests to BookablePost, Booking, Week, Calendar, Location and Timeframe model classes. For this it introduces the clock-mock library, to ease the testing of time-dependent code. clock-mock needs the uopz php extension. Several small fixes: * Fixes missing grid variable after refactoring * Fixes method invocation of commented test * Refactors the bookingLink invocation * Fixes CB::get invocation with missing post value --------- Co-authored-by: Hans Morbach <6433480+hansmorb@users.noreply.github.com>
- Loading branch information
1 parent
c4c1b0f
commit a137852
Showing
17 changed files
with
781 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.