rename variable in tests bootstrap for consitency
All checks were successful
PHP Code Checker / PHP Code Checker (push) Successful in 45s
PHPUnit / PHPUnit – PHP 7.4 (push) Successful in 58s
PHPUnit / PHPUnit – PHP 8.0 (push) Successful in 1m0s
PHPUnit / PHPUnit – PHP 8.1 (push) Successful in 59s
PHPUnit / PHPUnit – PHP 8.2 (push) Successful in 59s
PHPUnit / PHPUnit – PHP 8.3 (push) Successful in 1m1s
All checks were successful
PHP Code Checker / PHP Code Checker (push) Successful in 45s
PHPUnit / PHPUnit – PHP 7.4 (push) Successful in 58s
PHPUnit / PHPUnit – PHP 8.0 (push) Successful in 1m0s
PHPUnit / PHPUnit – PHP 8.1 (push) Successful in 59s
PHPUnit / PHPUnit – PHP 8.2 (push) Successful in 59s
PHPUnit / PHPUnit – PHP 8.3 (push) Successful in 1m1s
This commit is contained in:
parent
9e51823595
commit
7eb011859a
2 changed files with 6 additions and 6 deletions
|
@ -180,7 +180,7 @@ In the pipeline we want to run each event plugins integration tests in a single
|
||||||
To activate/load your plugin add it to the switch statement within the function `_manually_load_plugin()` within `tests/bootstrap.php`.
|
To activate/load your plugin add it to the switch statement within the function `_manually_load_plugin()` within `tests/bootstrap.php`.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
switch ( $activitypub_event_extension_integration_filter ) {
|
switch ( $activitypub_event_bridge_integration_filter ) {
|
||||||
...
|
...
|
||||||
case 'my_event_plugin':
|
case 'my_event_plugin':
|
||||||
$plugin_file = 'my-event-plugin/my-event-plugin.php';
|
$plugin_file = 'my-event-plugin/my-event-plugin.php';
|
||||||
|
|
|
@ -35,10 +35,10 @@ function _manually_load_plugin() {
|
||||||
require_once $plugin_dir . 'activitypub/activitypub.php';
|
require_once $plugin_dir . 'activitypub/activitypub.php';
|
||||||
|
|
||||||
// Capture the --filter argument.
|
// Capture the --filter argument.
|
||||||
$activitypub_event_extension_integration_filter = null;
|
$activitypub_event_bridge_integration_filter = null;
|
||||||
foreach ( $_SERVER['argv'] as $arg ) {
|
foreach ( $_SERVER['argv'] as $arg ) {
|
||||||
if ( strpos( $arg, '--filter=' ) === 0 ) {
|
if ( strpos( $arg, '--filter=' ) === 0 ) {
|
||||||
$activitypub_event_extension_integration_filter = substr( $arg, strlen( '--filter=' ) );
|
$activitypub_event_bridge_integration_filter = substr( $arg, strlen( '--filter=' ) );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ function _manually_load_plugin() {
|
||||||
|
|
||||||
$plugin_file = null;
|
$plugin_file = null;
|
||||||
// See if we want to run integration tests for a specific event-plugin.
|
// See if we want to run integration tests for a specific event-plugin.
|
||||||
switch ( $activitypub_event_extension_integration_filter ) {
|
switch ( $activitypub_event_bridge_integration_filter ) {
|
||||||
case 'the_events_calendar':
|
case 'the_events_calendar':
|
||||||
$plugin_file = 'the-events-calendar/the-events-calendar.php';
|
$plugin_file = 'the-events-calendar/the-events-calendar.php';
|
||||||
break;
|
break;
|
||||||
|
@ -84,14 +84,14 @@ function _manually_load_plugin() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hot fix that allows using Events Manager within unit tests, because the em_init() is later not run as admin.
|
// Hot fix that allows using Events Manager within unit tests, because the em_init() is later not run as admin.
|
||||||
if ( 'events_manager' === $activitypub_event_extension_integration_filter ) {
|
if ( 'events_manager' === $activitypub_event_bridge_integration_filter ) {
|
||||||
require_once $plugin_dir . 'events-manager/em-install.php';
|
require_once $plugin_dir . 'events-manager/em-install.php';
|
||||||
em_create_events_table();
|
em_create_events_table();
|
||||||
em_create_events_meta_table();
|
em_create_events_meta_table();
|
||||||
em_create_locations_table();
|
em_create_locations_table();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'modern_events_calendar_lite' === $activitypub_event_extension_integration_filter ) {
|
if ( 'modern_events_calendar_lite' === $activitypub_event_bridge_integration_filter ) {
|
||||||
require_once $plugin_dir . 'modern-events-calendar-lite/app/libraries/factory.php';
|
require_once $plugin_dir . 'modern-events-calendar-lite/app/libraries/factory.php';
|
||||||
$mec_factory = new MEC_factory();
|
$mec_factory = new MEC_factory();
|
||||||
$mec_factory->install();
|
$mec_factory->install();
|
||||||
|
|
Loading…
Reference in a new issue