Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pls78 committed Oct 13, 2023
1 parent 576dd23 commit a76b3ea
Showing 1 changed file with 1 addition and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ],
Expand All @@ -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 ],
Expand All @@ -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',
Expand All @@ -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) [
Expand All @@ -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,
];
}
Expand Down

0 comments on commit a76b3ea

Please sign in to comment.