Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable SQLite by default #280

Merged
merged 2 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
<directory suffix=".php">tests/unit</directory>
</testsuite>
</testsuites>
<php>
<!-- <env name="MANTLE_SQLITE" value="true" /> -->
</php>
</phpunit>
8 changes: 7 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@
/**
* Create WordPress Plugin Tests: Bootstrap
*
* phpcs:disable Squiz.Commenting.InlineComment.InvalidEndChar
*
* @package create-wordpress-plugin
*/

/**
* 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();
Loading