test
Some checks failed
/ test (push) Successful in 1s
Unit Testing / Run phpunit tests (pull_request) Failing after 4m11s

This commit is contained in:
André Menrath 2024-09-21 08:01:13 +02:00
parent 13741a4e18
commit 97b62577ca
2 changed files with 4 additions and 3 deletions

View file

@ -43,11 +43,12 @@ jobs:
- name: Install mysqladmin - name: Install mysqladmin
run: sudo apt update && sudo apt -y upgrade && sudo apt -y install mysql-client run: sudo apt update && sudo apt -y upgrade && sudo apt -y install mysql-client
- name: Clone plugin dependencies
run: git clone https://code.event-federation.eu/Event-Federation/wordpress-activitypub.git /tmp/wordpress/wp-content/plugins/activitypub/
- name: Setup Test Environment - name: Setup Test Environment
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest
- run: cat /tmp/wordpress-tests-lib/wp-tests-config.php
- name: Unit Testing - name: Unit Testing
run: phpunit run: phpunit
env: env:

View file

@ -29,7 +29,7 @@ require_once "{$_tests_dir}/includes/functions.php";
* Manually load the plugin being tested. * Manually load the plugin being tested.
*/ */
function _manually_load_plugin() { function _manually_load_plugin() {
require dirname( dirname( __FILE__ ) ) . '/activitypub-event-extensions.php'; require dirname( __DIR__ ) . '/activitypub-event-extensions.php';
} }
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' ); tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );