From 4f13cbdcdb31c08fd6819e4c2f19443624f70631 Mon Sep 17 00:00:00 2001 From: Tanner Record Date: Fri, 13 Sep 2024 10:22:08 -0400 Subject: [PATCH] Fix snapshot test for oauth with license key --- tests/wpunit/Admin/Fields/FieldTest.php | 2 +- ...resource_with_license_key__0.snapshot.html | 63 ++++++++++--------- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/tests/wpunit/Admin/Fields/FieldTest.php b/tests/wpunit/Admin/Fields/FieldTest.php index 7ba22f07..28569fe4 100644 --- a/tests/wpunit/Admin/Fields/FieldTest.php +++ b/tests/wpunit/Admin/Fields/FieldTest.php @@ -266,7 +266,7 @@ public function it_should_render_correct_html_for_oauth_resource_with_license_ke update_option( 'test_storage', [ 'stellarwp_auth_url_service_oauth_with_license_key_field_1' => [ 'expiration' => 0, - 'value' => 'https://licensing.stellarwp.com/account-auth?uplink_domain=&uplink_slug=service-oauth-with-license-key-field-1&_uplink_nonce=535281edcd', + 'value' => 'https://licensing.stellarwp.com/account-auth', ] ] ); $collection = $this->container->get( Collection::class ); diff --git a/tests/wpunit/Admin/Fields/__snapshots__/FieldTest__it_should_render_correct_html_for_oauth_resource_with_license_key__0.snapshot.html b/tests/wpunit/Admin/Fields/__snapshots__/FieldTest__it_should_render_correct_html_for_oauth_resource_with_license_key__0.snapshot.html index df61d908..5b395d63 100644 --- a/tests/wpunit/Admin/Fields/__snapshots__/FieldTest__it_should_render_correct_html_for_oauth_resource_with_license_key__0.snapshot.html +++ b/tests/wpunit/Admin/Fields/__snapshots__/FieldTest__it_should_render_correct_html_for_oauth_resource_with_license_key__0.snapshot.html @@ -1,37 +1,38 @@ - - +