? ? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
24 Dec 2021

Summary of Changes

Set sane default if the configuration.php has no value for dbtype, for example when running unit tests.

Testing Instructions

on a php 8.1 command line run

libraries/vendor/bin/phpunit tests/Unit/Libraries/Cms/Date/DateTest.php

Actual result BEFORE applying this Pull Request

libraries/vendor/bin/phpunit tests/Unit/Libraries/Cms/Date/DateTest.php

PHPUnit 8.5.21 by Sebastian Bergmann and contributors.

...PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 60
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 65
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 78
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 111
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 116
.
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 60

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 65

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 78

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 111

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Service/Provider/Database.php on line 116
......                                                        10 / 10 (100%)

Time: 52 ms, Memory: 10.00 MB

OK (10 tests, 32 assertions)

Expected result AFTER applying this Pull Request

libraries/vendor/bin/phpunit tests/Unit/Libraries/Cms/Date/DateTest.php


PHPUnit 8.5.21 by Sebastian Bergmann and contributors.

..........                                                        10 / 10 (100%)

Time: 57 ms, Memory: 10.00 MB

OK (10 tests, 32 assertions)

Documentation Changes Required

avatar PhilETaylor PhilETaylor - open - 24 Dec 2021
avatar PhilETaylor PhilETaylor - change - 24 Dec 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Dec 2021
Category Libraries
avatar PhilETaylor PhilETaylor - change - 24 Dec 2021
Labels Added: ?
avatar alikon alikon - test_item - 29 Dec 2021 - Tested successfully
avatar alikon
alikon - comment - 29 Dec 2021

I have tested this item successfully on e5aa48f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36397.

avatar Quy
Quy - comment - 16 Jan 2022

Please fix conflicts. Thanks.

avatar PhilETaylor
PhilETaylor - comment - 16 Jan 2022

hmm on it thanks

avatar PhilETaylor PhilETaylor - change - 16 Jan 2022
Labels Added: Conflicting Files ?
avatar PhilETaylor
PhilETaylor - comment - 16 Jan 2022

Done. Seems someone else did the same kind of thing, but this PR also cleans up the file and reduces the amount of code - so still has value.

avatar chmst chmst - change - 31 Jan 2022
Labels Removed: Conflicting Files
avatar PhilETaylor PhilETaylor - change - 6 Mar 2022
Labels Added: ?
Removed: ?
avatar Quy
Quy - comment - 6 Mar 2022

I have tested this item successfully on 12b40e2


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36397.

avatar Quy Quy - test_item - 6 Mar 2022 - Tested successfully
avatar Quy Quy - alter_testresult - 6 Mar 2022 - alikon: Tested successfully
avatar Quy Quy - change - 6 Mar 2022
The description was changed
Status Pending Ready to Commit
avatar Quy
Quy - comment - 6 Mar 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36397.

avatar Quy Quy - edited - 6 Mar 2022
avatar PhilETaylor PhilETaylor - change - 7 Mar 2022
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2022-03-07 18:34:04
Closed_By PhilETaylor
Labels Added: ?
avatar PhilETaylor PhilETaylor - close - 7 Mar 2022

Add a Comment

Login with GitHub to post a comment