diff --git a/tests/WP_SQLite_Translator_Tests.php b/tests/WP_SQLite_Translator_Tests.php index bb3b362a..43a68d13 100644 --- a/tests/WP_SQLite_Translator_Tests.php +++ b/tests/WP_SQLite_Translator_Tests.php @@ -120,13 +120,13 @@ public static function regexpOperators() { public function testRegexpReplace() { $this->assertQuery( - "INSERT INTO _options (option_name, option_value) VALUES ('first', 'test');" + "INSERT INTO _options (option_name, option_value) VALUES ('test-ignore', '1');" ); $this->assertQuery( - "INSERT INTO _options (option_name, option_value) VALUES ('second', 'ignore test');" + "INSERT INTO _options (option_name, option_value) VALUES ('test-remove', '2');" ); - $this->assertQuery( "SELECT FROM _options WHERE REGEXP_REPLACE(option_value, 'ignore ', '') = 'test'" ); + $this->assertQuery( "SELECT * FROM _options WHERE REGEXP_REPLACE(option_name, '(-ignore|-remove)', '') = 'test'" ); $this->assertCount( 2, $this->engine->get_query_results() ); }