From a76b3ea97b3cf3d266395f26b10beed10832611c Mon Sep 17 00:00:00 2001 From: Paolo Luigi Scala Date: Fri, 13 Oct 2023 16:22:13 +0200 Subject: [PATCH] Fix tests --- .../first-time-configuration-action-test.php | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/tests/unit/actions/configuration/first-time-configuration-action-test.php b/tests/unit/actions/configuration/first-time-configuration-action-test.php index c3ac5358ded..f09a7fd8676 100644 --- a/tests/unit/actions/configuration/first-time-configuration-action-test.php +++ b/tests/unit/actions/configuration/first-time-configuration-action-test.php @@ -117,7 +117,6 @@ public function site_representation_provider() { 'company_name' => 'Acme Inc.', 'company_logo' => 'https://acme.com/someimage.jpg', 'company_logo_id' => 123, - 'description' => 'A nice tagline', ], 'times' => 6, 'yoast_options_results' => [ true, true, true, true, true, true ], @@ -134,7 +133,6 @@ public function site_representation_provider() { 'person_logo' => 'https://acme.com/someimage.jpg', 'person_logo_id' => 123, 'company_or_person_user_id' => 321, - 'description' => 'A nice tagline', ], 'times' => 6, 'yoast_options_results' => [ true, true, true, true, true, true ], @@ -145,25 +143,6 @@ public function site_representation_provider() { ], ]; - $success_person_failure_tagline = [ - 'params' => [ - 'company_or_person' => 'person', - 'person_logo' => 'https://acme.com/someimage.jpg', - 'person_logo_id' => 123, - 'company_or_person_user_id' => 321, - 'description' => 'A tagline that will fail for some reason', - ], - 'times' => 6, - 'yoast_options_results' => [ true, true, true, true, true, true ], - 'wp_option_result' => false, - 'expected' => (object) [ - 'success' => false, - 'status' => 500, - 'error' => 'Could not save some options in the database', - 'failures' => [ 'description' ], - ], - ]; - $some_failures_company = [ 'params' => [ 'company_or_person' => 'company', @@ -172,7 +151,7 @@ public function site_representation_provider() { 'company_logo_id' => 123, 'description' => 'A nice tagline', ], - 'times' => 6, + 'times' => 7, 'yoast_options_results' => [ true, false, false, true, true, true ], 'wp_option_result' => true, 'expected' => (object) [ @@ -186,7 +165,6 @@ public function site_representation_provider() { return [ 'Successful call with company params' => $success_company, 'Successful call with person params' => $success_person, - 'Person params with failing description' => $success_person_failure_tagline, 'Company params with some failures' => $some_failures_company, ]; }