Skip to content

Commit

Permalink
Add additional tests to show the value is not modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Zodiac1978 committed Jun 13, 2024
1 parent 05d20b2 commit 28d2b76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/WP_SQLite_Translator_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ public function testRegexpReplace() {

$this->assertQuery( "SELECT * FROM _options WHERE REGEXP_REPLACE(option_name, '(-ignore|-remove)', '') = 'test'" );
$this->assertCount( 2, $this->engine->get_query_results() );

$result1 = $this->engine->query( "SELECT option_value FROM _options WHERE option_name='test-ignore';" );
$result2 = $this->engine->query( "SELECT option_value FROM _options WHERE option_name='test-remove';" );
$this->assertEquals( '1', $result1[0]->option_value );
$this->assertEquals( '2', $result2[0]->option_value );
}

public function testInsertDateNow() {
Expand Down

0 comments on commit 28d2b76

Please sign in to comment.