fix tests
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 44s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 59s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m3s

This commit is contained in:
André Menrath 2024-10-12 13:59:50 +02:00
parent 679698a920
commit 960f80ae28
3 changed files with 4 additions and 2 deletions

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 );