We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 370bdad commit f8e3fbbCopy full SHA for f8e3fbb
tests/bootstrap.php
@@ -73,6 +73,13 @@ function( $message ) {
73
// Start up the WP testing environment.
74
require $_tests_dir . '/includes/bootstrap.php';
75
76
+// If PHPUnit is run from the project directory, it loads the themeisle SDK via the composer autoload file at the
77
+// beginning of the script execution. This is too early because the SDK needs WordPress to be loaded. This code checks
78
+// if the SDK was actually loaded and forces it to load again if it wasn't loaded properly.
79
+if ( ! function_exists( 'tsdk_translate_link' ) ) {
80
+ require __DIR__ . '/../vendor/codeinwp/themeisle-sdk/load.php';
81
+}
82
+
83
// Activate Optimole plugin
84
activate_plugin( 'optimole-wp/optimole-wp.php' );
85
0 commit comments