User tests: Successful: Unsuccessful:
Set sane default if the configuration.php has no value for dbtype
, for example when running unit tests.
on a php 8.1 command line run
libraries/vendor/bin/phpunit tests/Unit/Libraries/Cms/Date/DateTest.php
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)
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)
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
?
|
Please fix conflicts. Thanks.
hmm on it thanks
Labels |
Added:
Conflicting Files
?
|
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.
Labels |
Removed:
Conflicting Files
|
Labels |
Added:
?
Removed: ? |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-03-07 18:34:04 |
Closed_By | ⇒ | PhilETaylor | |
Labels |
Added:
?
|
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.