From b65efe38454db635c441f59a95faaca15fd11f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Fri, 6 Dec 2024 17:11:44 +0100 Subject: [PATCH] make getters for endtime starttime location public --- .forgejo/workflows/phpunit.yml | 1 - includes/activitypub/transformer/class-event-organiser.php | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/phpunit.yml b/.forgejo/workflows/phpunit.yml index a4c9142..5f300c7 100644 --- a/.forgejo/workflows/phpunit.yml +++ b/.forgejo/workflows/phpunit.yml @@ -75,7 +75,6 @@ jobs: if: steps.cache-wordpress.outputs.cache-hit != 'false' run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wordpress-version }} false true true true - - name: Run General Tests run: cd /workspace/Event-Federation/wordpress-event-bridge-for-activitypub/ && ./vendor/bin/phpunit --filter=event_bridge_for_activitypub env: diff --git a/includes/activitypub/transformer/class-event-organiser.php b/includes/activitypub/transformer/class-event-organiser.php index 54e8cdf..6574f54 100644 --- a/includes/activitypub/transformer/class-event-organiser.php +++ b/includes/activitypub/transformer/class-event-organiser.php @@ -44,21 +44,21 @@ final class Event_Organiser extends Event { /** * Get the end time from the event object. */ - protected function get_end_time(): ?string { + public function get_end_time(): ?string { return eo_get_the_end( 'Y-m-d\TH:i:s\Z', $this->wp_object->ID, $this->wp_object->occurrence_id ); } /** * Get the end time from the event object. */ - protected function get_start_time(): string { + public function get_start_time(): string { return eo_get_the_start( 'Y-m-d\TH:i:s\Z', $this->wp_object->ID, $this->wp_object->occurrence_id ); } /** * Get location from the event object. */ - protected function get_location(): ?Place { + public function get_location(): ?Place { $venue_id = eo_get_venue( $this->wp_object->ID ); if ( ! $venue_id ) {