Make WordPress Core


Ignore:
Timestamp:
02/11/2021 02:02:42 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Tests: Add missing @covers tags for files in phpunit/tests/db/.

Props patopaiar, jrf.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db/charset.php

    r49027 r50286  
    477477         * @dataProvider data_strip_invalid_text
    478478         * @ticket 21212
     479         *
     480         * @covers wpdb::strip_invalid_text
    479481         */
    480482        function test_strip_invalid_text( $data, $expected, $message ) {
     
    508510        /**
    509511         * @ticket 21212
     512         *
     513         * @covers wpdb::process_fields
    510514         */
    511515        function test_process_fields_failure() {
     
    593597         * @dataProvider data_process_field_charsets
    594598         * @ticket 21212
     599         *
     600         * @covers wpdb::process_field_charsets
    595601         */
    596602        function test_process_field_charsets( $data, $expected, $message ) {
     
    620626        /**
    621627         * @ticket 21212
     628         *
     629         * @covers wpdb::check_ascii
    622630         */
    623631        function test_check_ascii() {
     
    628636        /**
    629637         * @ticket 21212
     638         *
     639         * @covers wpdb::check_ascii
    630640         */
    631641        function test_check_ascii_false() {
     
    635645        /**
    636646         * @ticket 21212
     647         *
     648         * @covers wpdb::strip_invalid_text_for_column
    637649         */
    638650        function test_strip_invalid_text_for_column() {
     
    743755         * @dataProvider data_test_get_table_charset
    744756         * @ticket 21212
     757         *
     758         * @covers wpdb::get_table_charset
    745759         */
    746760        function test_get_table_charset( $drop, $create, $table, $expected_charset ) {
     
    783797         * @dataProvider data_test_get_column_charset
    784798         * @ticket 21212
     799         *
     800         * @covers wpdb::get_col_charset
    785801         */
    786802        function test_get_column_charset( $drop, $create, $table, $expected_charset ) {
     
    805821         * @dataProvider data_test_get_column_charset
    806822         * @ticket 21212
     823         *
     824         * @covers wpdb::get_col_charset
    807825         */
    808826        function test_get_column_charset_non_mysql( $drop, $create, $table, $columns ) {
     
    831849         * @dataProvider data_test_get_column_charset
    832850         * @ticket 33501
     851         *
     852         * @covers wpdb::get_col_charset
    833853         */
    834854        function test_get_column_charset_is_mysql_undefined( $drop, $create, $table, $columns ) {
     
    890910         * @dataProvider data_strip_invalid_text_from_query
    891911         * @ticket 21212
     912         *
     913         * @covers wpdb::strip_invalid_text_from_query
    892914         */
    893915        function test_strip_invalid_text_from_query( $create, $query, $expected, $drop ) {
     
    933955         * @dataProvider data_dont_strip_text_from_schema_queries
    934956         * @ticket 32104
     957         *
     958         * @covers wpdb::strip_invalid_text_from_query
    935959         */
    936960        function test_dont_strip_text_from_schema_queries( $query ) {
     
    941965        /**
    942966         * @ticket 21212
     967         *
     968         * @covers wpdb::query
    943969         */
    944970        function test_invalid_characters_in_query() {
     
    10111037         * @dataProvider data_table_collation_check
    10121038         * @ticket 21212
     1039         *
     1040         * @covers wpdb::check_safe_collation
    10131041         */
    10141042        function test_table_collation_check( $create, $expected, $query, $drop, $always_true ) {
     
    10281056        }
    10291057
     1058        /**
     1059         * @covers wpdb::strip_invalid_text_for_column
     1060         */
    10301061        function test_strip_invalid_text_for_column_bails_if_ascii_input_too_long() {
    10311062                global $wpdb;
     
    10421073        /**
    10431074         * @ticket 32279
     1075         *
     1076         * @covers wpdb::strip_invalid_text_from_query
    10441077         */
    10451078        function test_strip_invalid_text_from_query_cp1251_is_safe() {
     
    10591092        /**
    10601093         * @ticket 34708
     1094         *
     1095         * @covers wpdb::strip_invalid_text_from_query
    10611096         */
    10621097        function test_no_db_charset_defined() {
     
    10811116        /**
    10821117         * @ticket 36649
     1118         *
     1119         * @covers wpdb::set_charset
    10831120         */
    10841121        function test_set_charset_changes_the_connection_collation() {
Note: See TracChangeset for help on using the changeset viewer.