From b31b9e22fb1b35525b5568830f9beceb848562ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Wed, 25 Dec 2024 18:36:43 +0100 Subject: [PATCH] fix test for venue address update for gatherpress --- .../activitypub/transmogrifier/class-test-gatherpress.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php b/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php index 1c7d783..8db98ac 100644 --- a/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php +++ b/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php @@ -209,15 +209,13 @@ class Test_GatherPress extends \WP_UnitTestCase { // We do not except duplicated. $the_query = $event_query->get_upcoming_events(); - - $this->assertEquals( true, $the_query->have_posts() ); $this->assertEquals( 1, $the_query->post_count ); // Check the updated representation of the event within The Events Calendar. $event = new Event( $the_query->get_posts()[0] ); $this->assertEquals( 'Updated name', $event->event->post_title ); - $this->assertEquals( 'Updated address', $event->get_venue_information()['name'] ); + $this->assertEquals( 'Updated address', $event->get_venue_information()['full address'] ); // Test delete. $json['type'] = 'Delete';