Skip to content

Commit

Permalink
Disable sqlite by default
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Nov 15, 2023
1 parent d5224cf commit 116e1ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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();

0 comments on commit 116e1ef

Please sign in to comment.