Something went wrong. Try again.
A fork of the open source relavanssi-light plugin, adapted to work with SQLite on Wordpress. SQlite has better default search than MySQL/MariaDB, so why not use it if you run WordPress on it?
wordpress sqlite ci search fts5
Something went wrong. Try again.
511 B · 23 lines
PHP
123456789101112131415161718192021222324<?php/** * PHPUnit bootstrap file for MySQL tests. * * @package Relevanssi_Light */
$_tests_dir = getenv( 'WP_TESTS_DIR' );
if ( ! $_tests_dir ) { $_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';}
require_once $_tests_dir . '/includes/functions.php';
/** * Load the plugin before the test suite starts. */tests_add_filter( 'muplugins_loaded', function() { require dirname( __DIR__ ) . '/relevanssi-light.php';} );
require_once $_tests_dir . '/includes/bootstrap.php';