add test for verifying parsing of insert statements and caching

This commit is contained in:
Matthew Bucci
2023-10-30 21:32:25 -07:00
parent fa6222bdee
commit ae2cbff59b
2 changed files with 54 additions and 0 deletions
+10
View File
@@ -22,6 +22,16 @@ final class verifyAgainstStubsTest extends TestCase
$data = json_decode(file_get_contents(self::STUBS_DIRECTORY . "/" . $file), true);
$this->assertSame(pg4wp_rewrite($data['mysql']), $data['postgresql']);
}
}
protected function setUp(): void
{
global $wpdb;
$wpdb = new class() {
public $categories = "wp_categories";
public $comments = "wp_comments";
public $prefix = "wp_";
public $options = "wp_options";
};
}
}