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

This commit is contained in:
André Menrath 2024-10-09 20:49:30 +02:00
parent 376e33756f
commit 0e3a904fa9
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ final class WP_Event_Manager extends Event_Transformer {
* @return array The Place.
*/
public function get_location(): ?Place {
$location_name = get_post_meta( $this->wp_object->ID, '_event_online', true );
$location_name = get_post_meta( $this->wp_object->ID, '_event_location', true );
if ( $location_name ) {
$location = new Place();
@ -101,7 +101,7 @@ final class WP_Event_Manager extends Event_Transformer {
if ( str_starts_with( $event_link_url, 'http' ) ) {
return array(
'type' => 'Link',
'name' => 'Video URL',
'name' => \esc_html__( 'Video URL', 'activitypub-event-bridge' ),
'href' => \esc_url( $event_link_url ),
'mediaType' => 'text/html',
);

View file

@ -134,7 +134,7 @@ class Test_WP_Event_Manager extends WP_UnitTestCase {
$this->assertContains(
array(
'type' => 'Link',
'name' => 'Video Link',
'name' => __( 'Video URL', 'activitypub-event-bridge' ),
'href' => 'https://event-federation.eu/meeting-room',
'mediaType' => 'text/html',
),