? ? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
24 Dec 2021

Code review

Symptoms:

Screenshot 2021-12-24 at 18 05 54

  <b>Deprecated</b>:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in <b>/tests/www/postgres/libraries/src/Date/Date.php</b> on line <b>126</b>

Unit test before PR

I mean, the provided unit test in this PR, before the change the Date.php

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

PHPUnit 8.5.21 by Sebastian Bergmann and contributors.

..........PHP Deprecated:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Date/Date.php on line 126
.                                                       11 / 11 (100%)
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /Users/phil/Sites/joomla-cms/libraries/src/Date/Date.php on line 126


Time: 34 ms, Memory: 10.00 MB

OK (11 tests, 33 assertions)

Unit test after PR

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


PHPUnit 8.5.21 by Sebastian Bergmann and contributors.

...........                                                       11 / 11 (100%)

Time: 52 ms, Memory: 10.00 MB

OK (11 tests, 33 assertions)
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 - comment - 24 Dec 2021

That awkward moment when you go to check the unit tests on a class, and the whole class is full of your exact birth date/time LMAO - I guess I wrote these unit tests then or else someone is trolling me geek time...

avatar brianteeman
brianteeman - comment - 24 Dec 2021

such a short memory. it was only march this year

avatar PhilETaylor
PhilETaylor - comment - 24 Dec 2021

Excuse me for forgetting which of the 3000+ contributions this year that was.. Ive probably slept since then
Screenshot 2021-12-24 at 18 13 52

avatar PhilETaylor PhilETaylor - change - 24 Dec 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 24 Dec 2021
Category Libraries Libraries Unit Tests
avatar PhilETaylor PhilETaylor - change - 24 Dec 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 24 Dec 2021
avatar PhilETaylor PhilETaylor - change - 24 Dec 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 24 Dec 2021
avatar PhilETaylor
PhilETaylor - comment - 24 Dec 2021

Added a unit test that fails before PR and passes after PR

avatar PhilETaylor PhilETaylor - change - 24 Dec 2021
Labels Added: ?
avatar PhilETaylor
PhilETaylor - comment - 24 Dec 2021

Drone failure is unrelated to this PR content

avatar PhilETaylor
PhilETaylor - comment - 24 Dec 2021

This overlaps #36355 but Im leaving this open as it has a unit test which the other PR doesn't and that's better...

avatar alikon alikon - test_item - 29 Dec 2021 - Tested successfully
avatar alikon
alikon - comment - 29 Dec 2021

I have tested this item successfully on 4db98d7


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

avatar PhilETaylor PhilETaylor - change - 1 Jan 2022
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jan 2022
Category Libraries Unit Tests Unit Tests
avatar PhilETaylor
PhilETaylor - comment - 6 Jan 2022

I have removed the Date.php changes in this PR and left the Unit Test only as the Date.php issue is fixed in #36355

avatar PhilETaylor PhilETaylor - change - 6 Mar 2022
Labels Added: ?
Removed: ?
avatar PhilETaylor PhilETaylor - change - 7 Mar 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-03-07 18:34:01
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 7 Mar 2022

Add a Comment

Login with GitHub to post a comment