Skip to content

Commit

Permalink
Appease spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jul 24, 2024
1 parent 2742bbd commit 0a8b21f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/performance-lab/tests/includes/admin/test-load.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,35 +91,35 @@ public function test_perflab_render_settings_page(): void {
*/
public function data_provider_test_perflab_admin_pointer(): array {
return array(
'null' => array(
'null' => array(
'set_up' => null,
'hook_suffix' => null,
'expected' => false,
'assert' => null,
'dismissed_wp_pointers' => '',
),
'edit.php' => array(
'edit.php' => array(
'set_up' => null,
'hook_suffix' => 'edit.php',
'expected' => false,
'assert' => null,
'dismissed_wp_pointers' => '',
),
'dashboard_not_dismissed' => array(
'dashboard_not_dismissed' => array(
'set_up' => null,
'hook_suffix' => 'index.php',
'expected' => true,
'assert' => null,
'dismissed_wp_pointers' => '',
),
'plugins_not_dismissed' => array(
'plugins_not_dismissed' => array(
'set_up' => null,
'hook_suffix' => 'plugins.php',
'expected' => true,
'assert' => null,
'dismissed_wp_pointers' => '',
),
'dashboard_yes_dismissed' => array(
'dashboard_yes_dismissed' => array(
'set_up' => static function (): void {
update_user_meta( wp_get_current_user()->ID, 'dismissed_wp_pointers', 'perflab-admin-pointer' );
},
Expand All @@ -128,7 +128,7 @@ public function data_provider_test_perflab_admin_pointer(): array {
'assert' => null,
'dismissed_wp_pointers' => 'perflab-admin-pointer',
),
'perflab_screen_1st_time' => array(
'perflab_screen_first_time' => array(
'set_up' => static function (): void {
$_GET['page'] = PERFLAB_SCREEN;
},
Expand All @@ -137,7 +137,7 @@ public function data_provider_test_perflab_admin_pointer(): array {
'assert' => null,
'dismissed_wp_pointers' => 'perflab-admin-pointer',
),
'perflab_screen_2nd_time' => array(
'perflab_screen_second_time' => array(
'set_up' => static function (): void {
$_GET['page'] = PERFLAB_SCREEN;
update_user_meta( wp_get_current_user()->ID, 'dismissed_wp_pointers', 'perflab-admin-pointer' );
Expand Down

0 comments on commit 0a8b21f

Please sign in to comment.