Changeset 50286
- Timestamp:
- 02/11/2021 02:02:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db/charset.php
r49027 r50286 477 477 * @dataProvider data_strip_invalid_text 478 478 * @ticket 21212 479 * 480 * @covers wpdb::strip_invalid_text 479 481 */ 480 482 function test_strip_invalid_text( $data, $expected, $message ) { … … 508 510 /** 509 511 * @ticket 21212 512 * 513 * @covers wpdb::process_fields 510 514 */ 511 515 function test_process_fields_failure() { … … 593 597 * @dataProvider data_process_field_charsets 594 598 * @ticket 21212 599 * 600 * @covers wpdb::process_field_charsets 595 601 */ 596 602 function test_process_field_charsets( $data, $expected, $message ) { … … 620 626 /** 621 627 * @ticket 21212 628 * 629 * @covers wpdb::check_ascii 622 630 */ 623 631 function test_check_ascii() { … … 628 636 /** 629 637 * @ticket 21212 638 * 639 * @covers wpdb::check_ascii 630 640 */ 631 641 function test_check_ascii_false() { … … 635 645 /** 636 646 * @ticket 21212 647 * 648 * @covers wpdb::strip_invalid_text_for_column 637 649 */ 638 650 function test_strip_invalid_text_for_column() { … … 743 755 * @dataProvider data_test_get_table_charset 744 756 * @ticket 21212 757 * 758 * @covers wpdb::get_table_charset 745 759 */ 746 760 function test_get_table_charset( $drop, $create, $table, $expected_charset ) { … … 783 797 * @dataProvider data_test_get_column_charset 784 798 * @ticket 21212 799 * 800 * @covers wpdb::get_col_charset 785 801 */ 786 802 function test_get_column_charset( $drop, $create, $table, $expected_charset ) { … … 805 821 * @dataProvider data_test_get_column_charset 806 822 * @ticket 21212 823 * 824 * @covers wpdb::get_col_charset 807 825 */ 808 826 function test_get_column_charset_non_mysql( $drop, $create, $table, $columns ) { … … 831 849 * @dataProvider data_test_get_column_charset 832 850 * @ticket 33501 851 * 852 * @covers wpdb::get_col_charset 833 853 */ 834 854 function test_get_column_charset_is_mysql_undefined( $drop, $create, $table, $columns ) { … … 890 910 * @dataProvider data_strip_invalid_text_from_query 891 911 * @ticket 21212 912 * 913 * @covers wpdb::strip_invalid_text_from_query 892 914 */ 893 915 function test_strip_invalid_text_from_query( $create, $query, $expected, $drop ) { … … 933 955 * @dataProvider data_dont_strip_text_from_schema_queries 934 956 * @ticket 32104 957 * 958 * @covers wpdb::strip_invalid_text_from_query 935 959 */ 936 960 function test_dont_strip_text_from_schema_queries( $query ) { … … 941 965 /** 942 966 * @ticket 21212 967 * 968 * @covers wpdb::query 943 969 */ 944 970 function test_invalid_characters_in_query() { … … 1011 1037 * @dataProvider data_table_collation_check 1012 1038 * @ticket 21212 1039 * 1040 * @covers wpdb::check_safe_collation 1013 1041 */ 1014 1042 function test_table_collation_check( $create, $expected, $query, $drop, $always_true ) { … … 1028 1056 } 1029 1057 1058 /** 1059 * @covers wpdb::strip_invalid_text_for_column 1060 */ 1030 1061 function test_strip_invalid_text_for_column_bails_if_ascii_input_too_long() { 1031 1062 global $wpdb; … … 1042 1073 /** 1043 1074 * @ticket 32279 1075 * 1076 * @covers wpdb::strip_invalid_text_from_query 1044 1077 */ 1045 1078 function test_strip_invalid_text_from_query_cp1251_is_safe() { … … 1059 1092 /** 1060 1093 * @ticket 34708 1094 * 1095 * @covers wpdb::strip_invalid_text_from_query 1061 1096 */ 1062 1097 function test_no_db_charset_defined() { … … 1081 1116 /** 1082 1117 * @ticket 36649 1118 * 1119 * @covers wpdb::set_charset 1083 1120 */ 1084 1121 function test_set_charset_changes_the_connection_collation() {
Note: See TracChangeset
for help on using the changeset viewer.