Skip to content

Commit

Permalink
Fix validation sources in AMP validation manager test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Oct 3, 2023
1 parent 7927067 commit c6717cd
Showing 1 changed file with 1 addition and 44 deletions.
45 changes: 1 addition & 44 deletions tests/php/validation/test-class-amp-validation-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1875,49 +1875,6 @@ public function test_decorate_shortcode_and_filter_source() {
'function' => version_compare( get_bloginfo( 'version' ), '5.5-alpha', '>' ) ? 'wp_filter_content_tags' : 'wp_make_content_images_responsive',
],
];
} elseif ( has_filter( 'the_content', 'do_blocks' ) ) {
$sources = [
[
'type' => 'plugin',
'name' => 'gutenberg',
'function' => 'do_blocks',
],
[
'type' => 'core',
'name' => 'wp-includes',
'function' => 'WP_Embed::run_shortcode',
],
[
'type' => 'core',
'name' => 'wp-includes',
'function' => 'WP_Embed::autoembed',
],
[
'type' => 'core',
'name' => 'wp-includes',
'function' => 'wptexturize',
],
[
'type' => 'core',
'name' => 'wp-includes',
'function' => 'wpautop',
],
[
'type' => 'core',
'name' => 'wp-includes',
'function' => 'shortcode_unautop',
],
[
'type' => 'core',
'name' => 'wp-includes',
'function' => 'prepend_attachment',
],
[
'type' => 'core',
'name' => 'wp-includes',
'function' => 'wp_make_content_images_responsive',
],
];
} else {
$sources = [
[
Expand Down Expand Up @@ -1953,7 +1910,7 @@ public function test_decorate_shortcode_and_filter_source() {
[
'type' => 'core',
'name' => 'wp-includes',
'function' => 'wp_make_content_images_responsive',
'function' => version_compare( get_bloginfo( 'version' ), '5.5-alpha', '>' ) ? 'wp_filter_content_tags' : 'wp_make_content_images_responsive',
],
];
}
Expand Down

0 comments on commit c6717cd

Please sign in to comment.