Changeset 52010 for trunk/tests/phpunit/tests/oembed/postEmbedUrl.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/postEmbedUrl.php
r48937 r52010 5 5 */ 6 6 class Tests_Post_Embed_URL extends WP_UnitTestCase { 7 function test_non_existent_post() {7 public function test_non_existent_post() { 8 8 $embed_url = get_post_embed_url( 0 ); 9 9 $this->assertFalse( $embed_url ); 10 10 } 11 11 12 function test_with_pretty_permalinks() {12 public function test_with_pretty_permalinks() { 13 13 $this->set_permalink_structure( '/%postname%' ); 14 14 … … 20 20 } 21 21 22 function test_with_ugly_permalinks() {22 public function test_with_ugly_permalinks() { 23 23 $post_id = self::factory()->post->create(); 24 24 $permalink = get_permalink( $post_id ); … … 31 31 * @ticket 34971 32 32 */ 33 function test_static_front_page() {33 public function test_static_front_page() { 34 34 $this->set_permalink_structure( '/%postname%/' ); 35 35 … … 49 49 * @ticket 34971 50 50 */ 51 function test_static_front_page_with_ugly_permalinks() {51 public function test_static_front_page_with_ugly_permalinks() { 52 52 $post_id = self::factory()->post->create( array( 'post_type' => 'page' ) ); 53 53 … … 65 65 * @ticket 34971 66 66 */ 67 function test_page_conflicts_with_embed_slug() {67 public function test_page_conflicts_with_embed_slug() { 68 68 $this->set_permalink_structure( '/%postname%/' ); 69 69 … … 87 87 * @ticket 34971 88 88 */ 89 function test_static_front_page_conflicts_with_embed_slug() {89 public function test_static_front_page_conflicts_with_embed_slug() { 90 90 $this->set_permalink_structure( '/%postname%/' ); 91 91
Note: See TracChangeset
for help on using the changeset viewer.