From 207b0221a5a4ca77b1e5bef089a43cb93c8856e0 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 14 Nov 2023 16:26:47 +0100 Subject: [PATCH] Require other autoloader --- tests/phpunit/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/bootstrap.php b/tests/phpunit/bootstrap.php index 144317c78..272056467 100644 --- a/tests/phpunit/bootstrap.php +++ b/tests/phpunit/bootstrap.php @@ -8,6 +8,10 @@ define( 'TESTS_PLUGIN_DIR', dirname( __DIR__, 2 ) ); define( 'UNIT_TESTS_PLUGIN_DIR', TESTS_PLUGIN_DIR . '/tests/phpunit/testdata/plugins/' ); +if ( file_exists( TESTS_PLUGIN_DIR . '/build-cs/vendor/autoload.php' ) ) { + require_once TESTS_PLUGIN_DIR . '/build-cs/vendor/autoload.php'; +} + if ( file_exists( TESTS_PLUGIN_DIR . '/vendor/autoload.php' ) ) { require_once TESTS_PLUGIN_DIR . '/vendor/autoload.php'; }