fix tests
All checks were successful
All checks were successful
This commit is contained in:
parent
679698a920
commit
960f80ae28
3 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue