File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -180,11 +180,6 @@ public function register_async_test_endpoints() {
180
180
* @return array $tests The filtered tests, with tests for AMP.
181
181
*/
182
182
public function add_tests ( $ tests ) {
183
- $ tests ['direct ' ]['amp_persistent_object_cache ' ] = [
184
- 'label ' => esc_html__ ( 'Persistent object cache ' , 'amp ' ),
185
- 'test ' => [ $ this , 'persistent_object_cache ' ],
186
- ];
187
-
188
183
if ( ! amp_is_canonical () && QueryVar::AMP !== amp_get_slug () ) {
189
184
$ tests ['direct ' ]['amp_slug_definition_timing ' ] = [
190
185
'label ' => esc_html__ ( 'AMP slug (query var) definition timing ' , 'amp ' ),
@@ -212,15 +207,6 @@ public function add_tests( $tests ) {
212
207
'test ' => [ $ this , 'xdebug_extension ' ],
213
208
];
214
209
215
- if ( $ this ->supports_async_rest_tests ( $ tests ) ) {
216
- $ tests ['async ' ][ self ::TEST_PAGE_CACHING ] = [
217
- 'label ' => esc_html__ ( 'Page caching ' , 'amp ' ),
218
- 'test ' => rest_url ( self ::REST_API_NAMESPACE . self ::REST_API_PAGE_CACHE_ENDPOINT ),
219
- 'has_rest ' => true ,
220
- 'async_direct_test ' => [ $ this , 'page_cache ' ],
221
- ];
222
- }
223
-
224
210
return $ tests ;
225
211
}
226
212
Original file line number Diff line number Diff line change @@ -154,13 +154,6 @@ public function test_register_async_test_endpoints() {
154
154
public function test_add_tests () {
155
155
$ tests = $ this ->instance ->add_tests ( [] );
156
156
$ this ->assertArrayHasKey ( 'direct ' , $ tests );
157
- $ this ->assertArrayHasKey ( 'amp_persistent_object_cache ' , $ tests ['direct ' ] );
158
-
159
- if ( version_compare ( get_bloginfo ( 'version ' ), '5.6 ' , '>= ' ) ) {
160
- $ this ->assertArrayHasKey ( 'amp_page_cache ' , $ tests ['async ' ] );
161
- } elseif ( array_key_exists ( 'async ' , $ tests ) ) {
162
- $ this ->assertArrayNotHasKey ( 'amp_page_cache ' , $ tests ['async ' ] );
163
- }
164
157
165
158
$ this ->assertArrayHasKey ( 'amp_curl_multi_functions ' , $ tests ['direct ' ] );
166
159
$ this ->assertArrayNotHasKey ( 'amp_icu_version ' , $ tests ['direct ' ] );
You can’t perform that action at this time.
0 commit comments