Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#39998 new enhancement

Remove unneeded use of wpdb_exposed_methods_for_testing

Reported by: clarinetlord Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Build/Test Tools Keywords: has-patch
Focuses: Cc:
PR Number:


In looking at the method test_utf8mb3_post_saves_with_emoji() in the file tests/phpunit/tests/post.php, I noticed an instantiation of the wpdb_exposed_methods_for_testing class. However, it doesn't seem like this test calls any non-public methods of the wpdb class. It seems like using this special class isn't necessary. Am I missing something?

Attachments (1)

Removed_unnecessary_use_of_wpdb_exposed_methods_for_testing_class.patch (681 bytes) - added by clarinetlord 3 years ago.

Download all attachments as: .zip

Change History (2)

Note: See TracTickets for help on using tickets.