Skip to content

Commit

Permalink
Test case-insensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpayton committed May 1, 2024
1 parent a2a5c59 commit 93c668a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/WP_SQLite_Translator_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,6 @@ public function testSelectVariable( $variable_name ) {

public static function mysqlVariablesToTest() {
return array(
// TODO: generate variable name permutations with mixed letter casing
// NOTE: This list was derived from the variables used by the UpdraftPlus plugin.
// We will start here and plan to expand supported variables over time.
array( '@@character_set_client' ),
Expand All @@ -2270,6 +2269,11 @@ public static function mysqlVariablesToTest() {
array( '@@GLOBAL.sql_mode' ),
array( '@@SESSION.max_allowed_packet' ),
array( '@@SESSION.sql_mode' ),

// Intentionally mix letter casing to help demonstrate case-insensitivity
array( '@@cHarActer_Set_cLient' ),
array( '@@gLoBAL.gTiD_purGed' ),
array( '@@sEssIOn.sqL_moDe' ),
);
}
}

0 comments on commit 93c668a

Please sign in to comment.