-
Notifications
You must be signed in to change notification settings - Fork 28
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
GT-129 Cast all returns from Config.php to appropriate types #420
base: dev
Are you sure you want to change the base?
GT-129 Cast all returns from Config.php to appropriate types #420
Conversation
- as per issue request, all returns from config.php are now explicitly cast to appropriate types - this is to prevent confusion and error as before returns were being cast as a SimpleXMLElement object which can cause unexpected behaviour - new lines were also added in and around some of the functions where they were missing to make the text more readable
@gregcorbett I guess we don't have an existing unit test that could be extended to cover this? |
I would presume not. |
As discussed, @rowan04 would you be able to take a look at implementing a unit test to check the public methods in |
- A type cast had accidentally not been added to the getHeadingTextColour function, so has now been added
54c3ace
to
89756eb
Compare
The force push was to amend a commit name/message |
After doing some tests on some of the functions in Config.php, this type casting method works. However, there is still some work for me to do to create some proper unit tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit test writing that is in progress.
Unfortunately, due to me starting a new rotation, I am unable to write the unit tests for this pr. See #486 |
fixed conflicts |
Resolves #413