@@ -126,28 +126,24 @@ public function data_provider_test_perflab_admin_pointer(): array {
126
126
'set_up ' => null ,
127
127
'hook_suffix ' => null ,
128
128
'expected ' => false ,
129
- 'assert ' => null ,
130
129
'dismissed_wp_pointers ' => '' ,
131
130
),
132
131
'edit.php ' => array (
133
132
'set_up ' => null ,
134
133
'hook_suffix ' => 'edit.php ' ,
135
134
'expected ' => false ,
136
- 'assert ' => null ,
137
135
'dismissed_wp_pointers ' => '' ,
138
136
),
139
137
'dashboard_not_dismissed ' => array (
140
138
'set_up ' => null ,
141
139
'hook_suffix ' => 'index.php ' ,
142
140
'expected ' => true ,
143
- 'assert ' => null ,
144
141
'dismissed_wp_pointers ' => 'perflab-feature-view-transitions ' ,
145
142
),
146
143
'plugins_not_dismissed ' => array (
147
144
'set_up ' => null ,
148
145
'hook_suffix ' => 'plugins.php ' ,
149
146
'expected ' => true ,
150
- 'assert ' => null ,
151
147
'dismissed_wp_pointers ' => 'perflab-feature-view-transitions ' ,
152
148
),
153
149
'dashboard_new_dismissed ' => array (
@@ -157,7 +153,6 @@ public function data_provider_test_perflab_admin_pointer(): array {
157
153
},
158
154
'hook_suffix ' => 'index.php ' ,
159
155
'expected ' => true ,
160
- 'assert ' => null ,
161
156
'dismissed_wp_pointers ' => 'perflab-admin-pointer,perflab-feature-view-transitions ' ,
162
157
),
163
158
'dashboard_one_dismissed ' => array (
@@ -167,7 +162,6 @@ public function data_provider_test_perflab_admin_pointer(): array {
167
162
},
168
163
'hook_suffix ' => 'index.php ' ,
169
164
'expected ' => false ,
170
- 'assert ' => null ,
171
165
'dismissed_wp_pointers ' => 'perflab-admin-pointer,perflab-feature-nocache-bfcache,perflab-feature-view-transitions ' ,
172
166
),
173
167
'dashboard_all_dismissed ' => array (
@@ -176,7 +170,6 @@ public function data_provider_test_perflab_admin_pointer(): array {
176
170
},
177
171
'hook_suffix ' => 'index.php ' ,
178
172
'expected ' => false ,
179
- 'assert ' => null ,
180
173
'dismissed_wp_pointers ' => implode ( ', ' , array_keys ( perflab_get_admin_pointers () ) ),
181
174
),
182
175
'perflab_screen_first_time ' => array (
@@ -185,7 +178,6 @@ public function data_provider_test_perflab_admin_pointer(): array {
185
178
},
186
179
'hook_suffix ' => 'options-general.php ' ,
187
180
'expected ' => false ,
188
- 'assert ' => null ,
189
181
'dismissed_wp_pointers ' => implode ( ', ' , array_keys ( perflab_get_admin_pointers () ) ),
190
182
),
191
183
'perflab_screen_second_time ' => array (
@@ -195,7 +187,6 @@ public function data_provider_test_perflab_admin_pointer(): array {
195
187
},
196
188
'hook_suffix ' => 'options-general.php ' ,
197
189
'expected ' => false ,
198
- 'assert ' => null ,
199
190
'dismissed_wp_pointers ' => implode ( ', ' , array_keys ( perflab_get_admin_pointers () ) ),
200
191
),
201
192
);
@@ -208,10 +199,9 @@ public function data_provider_test_perflab_admin_pointer(): array {
208
199
* @param Closure|null $set_up Set up.
209
200
* @param string|null $hook_suffix Hook suffix.
210
201
* @param bool $expected Expected.
211
- * @param Closure|null $assert Assert.
212
202
* @param string $dismissed_wp_pointers Dismissed admin pointers.
213
203
*/
214
- public function test_perflab_admin_pointer ( ?Closure $ set_up , ?string $ hook_suffix , bool $ expected , ? Closure $ assert , string $ dismissed_wp_pointers ): void {
204
+ public function test_perflab_admin_pointer ( ?Closure $ set_up , ?string $ hook_suffix , bool $ expected , string $ dismissed_wp_pointers ): void {
215
205
$ user_id = self ::factory ()->user ->create ( array ( 'role ' => 'administrator ' ) );
216
206
wp_set_current_user ( $ user_id );
217
207
if ( $ set_up instanceof Closure ) {
0 commit comments