Changeset 52010 for trunk/tests/phpunit/tests/oembed/discovery.php
- Timestamp:
- 11/04/2021 03:22:47 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/oembed/discovery.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/discovery.php
r48937 r52010 5 5 */ 6 6 class Tests_oEmbed_Discovery extends WP_UnitTestCase { 7 function test_add_oembed_discovery_links_non_singular() {7 public function test_add_oembed_discovery_links_non_singular() { 8 8 $this->assertSame( '', get_echo( 'wp_oembed_add_discovery_links' ) ); 9 9 } 10 10 11 function test_add_oembed_discovery_links_front_page() {11 public function test_add_oembed_discovery_links_front_page() { 12 12 $this->go_to( home_url() ); 13 13 $this->assertSame( '', get_echo( 'wp_oembed_add_discovery_links' ) ); … … 18 18 * @ticket 34971 19 19 */ 20 function test_add_oembed_discovery_links_static_front_page() {20 public function test_add_oembed_discovery_links_static_front_page() { 21 21 update_option( 'show_on_front', 'page' ); 22 22 update_option( … … 41 41 } 42 42 43 function test_add_oembed_discovery_links_to_post() {43 public function test_add_oembed_discovery_links_to_post() { 44 44 $post_id = self::factory()->post->create(); 45 45 $this->go_to( get_permalink( $post_id ) ); … … 52 52 } 53 53 54 function test_add_oembed_discovery_links_to_page() {54 public function test_add_oembed_discovery_links_to_page() { 55 55 $post_id = self::factory()->post->create( 56 56 array( … … 67 67 } 68 68 69 function test_add_oembed_discovery_links_to_attachment() {69 public function test_add_oembed_discovery_links_to_attachment() { 70 70 $post_id = self::factory()->post->create(); 71 71 $file = DIR_TESTDATA . '/images/canola.jpg';
Note: See TracChangeset
for help on using the changeset viewer.