diff --git a/tests/php/test-amp-img-sanitizer.php b/tests/php/test-amp-img-sanitizer.php index 9128703ce12..7510533e3bf 100644 --- a/tests/php/test-amp-img-sanitizer.php +++ b/tests/php/test-amp-img-sanitizer.php @@ -595,6 +595,27 @@ public function get_data() { 'native_img_used' => false, ], ], + + 'fetchpriority_attr_not_added_to_amp-img' => [ + '', + '', + [ + 'add_noscript_fallback' => false, + ], + ], + + 'fetchpriority_attr_is_preserved_in_noscript_fallback_img' => [ + '', + '', + ], + + 'fetchpriority_attr_is_preserved_in_native_img' => [ + '', + '', + [ + 'native_img_used' => true, + ], + ], ]; }