From 960f80ae28bdb50207fa04dc1c3792de9e10c379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 12 Oct 2024 13:59:50 +0200 Subject: [PATCH] fix tests --- includes/activitypub/transformer/class-eventin.php | 2 +- tests/bootstrap.php | 2 ++ tests/test-class-plugin-eventin.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/activitypub/transformer/class-eventin.php b/includes/activitypub/transformer/class-eventin.php index db80179..7b4dab7 100644 --- a/includes/activitypub/transformer/class-eventin.php +++ b/includes/activitypub/transformer/class-eventin.php @@ -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; } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index ece3323..4bbd83a 100755 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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. diff --git a/tests/test-class-plugin-eventin.php b/tests/test-class-plugin-eventin.php index 0303265..504045e 100644 --- a/tests/test-class-plugin-eventin.php +++ b/tests/test-class-plugin-eventin.php @@ -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 );