From 41803e3b41e438d98b7896181e77fa0aa9c61e7c Mon Sep 17 00:00:00 2001 From: Thijs van der heijden Date: Tue, 7 May 2024 12:21:48 +0200 Subject: [PATCH] Use dynamic links. --- .../Site/Post_Site_Information_Test.php | 26 +++---------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/tests/WP/Editors/Framework/Site/Post_Site_Information_Test.php b/tests/WP/Editors/Framework/Site/Post_Site_Information_Test.php index 47edfd1c382..45f75860f69 100644 --- a/tests/WP/Editors/Framework/Site/Post_Site_Information_Test.php +++ b/tests/WP/Editors/Framework/Site/Post_Site_Information_Test.php @@ -118,18 +118,9 @@ public function test_legacy_site_information() { ], 'dismissedAlerts' => false, 'currentPromotions' => [], - 'webinarIntroBlockEditorUrl' => 'https://yoa.st/webinar-intro-block-editor?php_version=7.4&platform=wordpress&platform_version=6.6-alpha-57778-src&software=free&software_version=22.7-RC3&days_active=14&user_language=en_US', + 'webinarIntroBlockEditorUrl' => $this->short_link_helper->get( 'https://yoa.st/webinar-intro-block-editor' ), 'blackFridayBlockEditorUrl' => '', - 'linkParams' => - [ - 'php_version' => '7.4', - 'platform' => 'wordpress', - 'platform_version' => '6.6-alpha-57778-src', - 'software' => 'free', - 'software_version' => '22.7-RC3', - 'days_active' => 14, - 'user_language' => 'en_US', - ], + 'linkParams' => $this->short_link_helper->get_query_params(), 'pluginUrl' => 'http://example.org/wp-content/plugins/wordpress-seo', 'wistiaEmbedPermission' => true, ]; @@ -156,18 +147,9 @@ public function test_site_information() { 'base_url' => 'http://example.org/', 'dismissedAlerts' => false, 'currentPromotions' => [], - 'webinarIntroBlockEditorUrl' => 'https://yoa.st/webinar-intro-block-editor?php_version=7.4&platform=wordpress&platform_version=6.6-alpha-57778-src&software=free&software_version=22.7-RC3&days_active=14&user_language=en_US', + 'webinarIntroBlockEditorUrl' => $this->short_link_helper->get( 'https://yoa.st/webinar-intro-block-editor' ), 'blackFridayBlockEditorUrl' => '', - 'linkParams' => - [ - 'php_version' => '7.4', - 'platform' => 'wordpress', - 'platform_version' => '6.6-alpha-57778-src', - 'software' => 'free', - 'software_version' => '22.7-RC3', - 'days_active' => 14, - 'user_language' => 'en_US', - ], + 'linkParams' => $this->short_link_helper->get_query_params(), 'pluginUrl' => 'http://example.org/wp-content/plugins/wordpress-seo', 'wistiaEmbedPermission' => true, 'site_name' => 'Test Blog',