WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#32917 new enhancement

Tests_DB_Charset tests don't fully cover wpdb::strip_invalid_text_for_column()

Reported by: johnbillion Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.2
Component: Charset Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description

Related / previously:

Tests_DB_Charset includes a data provider that feeds various charsets into its wpdb::strip_invalid_text() test, but not for its wpdb::strip_invalid_text_for_column() test, which means it's not being tested fully. It should be.

Change History (1)

#1 @dd32
3 years ago

#32279 is an example where test coverage here would've prevented issues..

Note: See TracTickets for help on using tickets.