Problem/Motivation
The office_hours_update_8013 function is defined inside the office_hours_update_8005 function.
This looks like like a typo with a `}` causing office_hours_update_8013() not to be ran.
Also add test for the update hooks.
Steps to reproduce
Proposed resolution
Move office_hours_update_8013() outside office_hours_update_8013()
Add UnitTest for office_hours_update_8001() and office_hours_update_8013()
Add KernelTest for office_hours_update_8001() and office_hours_update_8013()
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork office_hours-3542512
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
bluegeek9 commentedComment #5
johnvCommitted.
The issue title does not coincide with the patch contents "git commit -m 'Issue #3542512 by bluegeek9: Add tests for office_hours_update_xxxx() functions'"
Comment #6
bluegeek9 commentedI update the issue with a description.
The office_hours.install has one hook_update_N() inside another hook_update_N(). I also added tests.
https://git.drupalcode.org/project/office_hours/-/merge_requests/70/diff...
Comment #8
johnvComment #10
johnv