Add Transformer for Eventin (WP Event Solution) #62

Merged
linos merged 6 commits from eventin into main 2024-10-13 09:44:01 +02:00
3 changed files with 4 additions and 2 deletions
Showing only changes of commit 960f80ae28 - Show all commits

View file

@ -159,7 +159,7 @@ final class Eventin extends Event {
$place->set_name( $address );
$place->set_address( $address );
$place->set_sensitive( null);
$place->set_sensitive( null );
return $place;
}

View file

@ -43,7 +43,9 @@ function _manually_load_plugin() {
}
}
// Hot fixes for eventin.
update_option( 'purchase_history_table_structure_migration_done', true );
update_option( 'etn_wizard', 'active' );
$plugin_file = null;
// See if we want to run integration tests for a specific event-plugin.

View file

@ -56,7 +56,7 @@ class Test_Eventin extends WP_UnitTestCase {
);
// Call the transformer Factory.
$transformer = \Activitypub\Transformer\Factory::get_transformer( $event_model->id );
$transformer = \Activitypub\Transformer\Factory::get_transformer( get_post( $event_model->id ) );
// Check that we got the right transformer.
$this->assertInstanceOf( \ActivityPub_Event_Bridge\Activitypub\Transformer\Eventin::class, $transformer );