Wordpress/tests
Gary Pendergast bc975d28d4 Database: Split the logic of wpdb::init_charset() into a separate method.
The logic for determining the appropriate character set and collation to use is becoming more complex, particularly with the recent additions of [37522] and [37523]. As `init_charset()` has side effects, and makes use of constants instead of parameters, it's not possible to unit test this logic.

This commit splits the logic part of `init_charset()` out into a new method, `wpdb::determine_charset()`, along with appropriate unit tests.

See #32105, #37522.

Fixes #36917.



git-svn-id: https://develop.svn.wordpress.org/trunk@37601 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-01 02:37:20 +00:00
..
phpunit Database: Split the logic of wpdb::init_charset() into a separate method. 2016-06-01 02:37:20 +00:00
qunit Customize: Add setting validation model and control notifications to augment setting sanitization. 2016-05-20 21:09:40 +00:00