Add integration tests for The Events Calendar #31

Merged
linos merged 17 commits from improve_tests into main 2024-09-24 16:24:32 +02:00
Showing only changes of commit 98dc3c3839 - Show all commits

View file

@ -234,9 +234,9 @@ class Setup {
// Get the transformer for a specific event plugins event-post type.
foreach ( $this->active_event_plugins as $event_plugin ) {
if ( $wp_object->post_type === $event_plugin->get_post_type() ) {
$transformer_class = $event_plugin->get_activitypub_event_transformer_class();
$transformer_class = $event_plugin::get_activitypub_event_transformer_class();
if ( class_exists( $transformer_class ) ) {
return new $transformer_class( $wp_object, $event_plugin->get_event_category_taxonomy() );
return new $transformer_class( $wp_object, $event_plugin::get_event_category_taxonomy() );
}
}
}