From 116e1efc31cbbb8c9030f7078f0d89f223a042c6 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Wed, 15 Nov 2023 11:10:47 -0500 Subject: [PATCH] Disable sqlite by default --- phpunit.xml | 3 +++ tests/bootstrap.php | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/phpunit.xml b/phpunit.xml index ab2a15ee..f9efaaf4 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -15,4 +15,7 @@ tests/unit + + + diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 75e8e4a2..daad0506 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -2,6 +2,8 @@ /** * Create WordPress Plugin Tests: Bootstrap * + * phpcs:disable Squiz.Commenting.InlineComment.InvalidEndChar + * * @package create-wordpress-plugin */ @@ -9,8 +11,12 @@ * Visit {@see https://mantle.alley.com/testing/test-framework.html} to learn more. */ \Mantle\Testing\manager() + // Rsync the plugin to plugins/create-wordpress-plugin when testing. ->maybe_rsync_plugin() - ->with_sqlite() + + // Use SQLite for testing instead of SQL (disabled by default). + // ->with_sqlite() + // Load the main file of the plugin. ->loaded( fn () => require_once __DIR__ . '/../plugin.php' ) ->install();