Closed (duplicate)
Project:
Drupal core
Version:
8.6.x-dev
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Dec 2013 at 08:54 UTC
Updated:
21 Feb 2020 at 18:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andypostNice catch, original issue was commited without tests so we need chx here
Comment #2
andypostComment #3
chx commentedLooks good to me. I still have no idea how on earth would we test any of this.
Comment #4
chx commentedIn fact, after alexpott prodded me a little, I do know how to test this. This now can be phpunit'd by just instantiating the Log class and then passing a made up stack to the findCaller method (it's a pure function). Please do not forget to add doxygen for the new $stack argument.
Comment #5
jibranAdded phpunit tag as per for #4. NR for testing the patch.
Comment #6
ParisLiakos commentedComment #13
mondrakeFixed by
#2867788: Log::findCaller fails to report the correct caller function with non-core drivers.