Skip to content

Commit

Permalink
Fixed polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Jan 11, 2025
1 parent d4e2912 commit 78c4dfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
coverage: none
tools: composer, phpunit

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Install WordPress Test Suite
env:
WP_VERSION: ${{ matrix.wp }}
Expand Down
5 changes: 2 additions & 3 deletions phpunit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Better_Search_Plugin
*/
require_once dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) . '/.composer/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php';
require_once dirname( __DIR__ ) . '/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php';

$_tests_dir = getenv( 'WP_TESTS_DIR' );

Expand All @@ -27,7 +27,7 @@
require_once $_tests_dir . '/includes/functions.php';

function _manually_load_plugin() {
require dirname( dirname( __FILE__ ) ) . '/popular-authors.php';
require dirname( __DIR__ ) . '/popular-authors.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );

Expand All @@ -37,4 +37,3 @@ function _manually_load_plugin() {
activate_plugin( 'popular-authors/popular-authors.php' );

echo "Installing Popular Authors...\n";

0 comments on commit 78c4dfb

Please sign in to comment.