Add options for summary #80

Merged
linos merged 15 commits from custom_summary into main 2024-12-06 18:27:08 +01:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit b65efe3845 - Show all commits

View file

@ -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:

View file

@ -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 ) {