33/**
44 * @group oembed
55 *
6- * @covers WP_oEmbed
6+ * @coversDefaultClass WP_oEmbed
77 */
88class Tests_WP_oEmbed extends WP_UnitTestCase {
99 /**
@@ -49,6 +49,9 @@ public function _filter_pre_oembed_result( $result ) {
4949 return $ result ? $ result : false ;
5050 }
5151
52+ /**
53+ * @covers ::get_html
54+ */
5255 public function test_wp_filter_pre_oembed_result_prevents_http_request_for_internal_permalinks () {
5356 $ post_id = self ::factory ()->post ->create ();
5457 $ permalink = get_permalink ( $ post_id );
@@ -61,6 +64,9 @@ public function test_wp_filter_pre_oembed_result_prevents_http_request_for_inter
6164 $ this ->assertSame ( $ this ->pre_oembed_result_filtered , $ actual );
6265 }
6366
67+ /**
68+ * @covers ::get_html
69+ */
6470 public function test_wp_filter_pre_oembed_result_prevents_http_request_when_viewing_the_post () {
6571 $ post_id = self ::factory ()->post ->create ();
6672 $ permalink = get_permalink ( $ post_id );
@@ -76,6 +82,9 @@ public function test_wp_filter_pre_oembed_result_prevents_http_request_when_view
7682 $ this ->assertSame ( $ this ->pre_oembed_result_filtered , $ actual );
7783 }
7884
85+ /**
86+ * @covers ::get_html
87+ */
7988 public function test_wp_filter_pre_oembed_result_non_existent_post () {
8089 $ post_id = self ::factory ()->post ->create ();
8190 $ permalink = get_permalink ( $ post_id );
@@ -95,6 +104,8 @@ public function test_wp_filter_pre_oembed_result_non_existent_post() {
95104 * @ticket 40673
96105 * @group multisite
97106 * @group ms-required
107+ *
108+ * @covers ::get_html
98109 */
99110 public function test_wp_filter_pre_oembed_result_multisite_root_root () {
100111 $ post_id = self ::factory ()->post ->create ();
@@ -112,6 +123,8 @@ public function test_wp_filter_pre_oembed_result_multisite_root_root() {
112123 * @ticket 40673
113124 * @group multisite
114125 * @group ms-required
126+ *
127+ * @covers ::get_html
115128 */
116129 public function test_wp_filter_pre_oembed_result_multisite_sub_samesub () {
117130 $ user_id = self ::$ user_id ;
@@ -141,6 +154,8 @@ public function test_wp_filter_pre_oembed_result_multisite_sub_samesub() {
141154 * @ticket 40673
142155 * @group multisite
143156 * @group ms-required
157+ *
158+ * @covers ::get_html
144159 */
145160 public function test_wp_filter_pre_oembed_result_multisite_sub_othersub () {
146161 $ user_id = self ::$ user_id ;
@@ -178,6 +193,8 @@ public function test_wp_filter_pre_oembed_result_multisite_sub_othersub() {
178193 * @ticket 40673
179194 * @group multisite
180195 * @group ms-required
196+ *
197+ * @covers ::get_html
181198 */
182199 public function test_wp_filter_pre_oembed_result_multisite_sub_main () {
183200 $ post_id = self ::factory ()->post ->create ();
@@ -205,6 +222,8 @@ public function test_wp_filter_pre_oembed_result_multisite_sub_main() {
205222 * @ticket 40673
206223 * @group multisite
207224 * @group ms-required
225+ *
226+ * @covers ::get_html
208227 */
209228 public function test_wp_filter_pre_oembed_result_multisite_preserves_switched_state () {
210229 $ user_id = self ::$ user_id ;
@@ -234,6 +253,8 @@ public function test_wp_filter_pre_oembed_result_multisite_preserves_switched_st
234253 * @ticket 40673
235254 * @group multisite
236255 * @group ms-required
256+ *
257+ * @covers ::get_html
237258 */
238259 public function test_wp_filter_pre_oembed_result_multisite_restores_state_if_no_post_is_found () {
239260 $ current_blog_id = get_current_blog_id ();
0 commit comments