Changeset 59700 for trunk/tests/phpunit/tests/oembed/discovery.php
- Timestamp:
- 01/24/2025 01:30:27 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/discovery.php
r58286 r59700 86 86 $this->assertSame( $expected, get_echo( 'wp_oembed_add_discovery_links' ) ); 87 87 } 88 89 /** 90 * @ticket 35567 91 */ 92 public function test_wp_oembed_add_discovery_links_non_embeddable_post_type_output_should_be_empty() { 93 register_post_type( 'not_embeddable', array( 'embeddable' => false ) ); 94 95 $post = self::factory()->post->create_and_get( 96 array( 97 'post_type' => 'not_embeddable', 98 ) 99 ); 100 101 $this->assertFalse( get_oembed_response_data( $post, 100 ) ); 102 } 88 103 }
Note: See TracChangeset
for help on using the changeset viewer.