Changeset 35235 for trunk/tests/phpunit/tests/oembed/template.php
- Timestamp:
- 10/17/2015 01:20:19 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/template.php
r35225 r35235 187 187 } 188 188 189 function test_wp_ oembed_excerpt_more_no_embed() {189 function test_wp_embed_excerpt_more_no_embed() { 190 190 $GLOBALS['wp_query'] = new WP_Query(); 191 191 192 $this->assertEquals( 'foo bar', wp_ oembed_excerpt_more( 'foo bar' ) );193 } 194 195 function test_wp_ oembed_excerpt_more() {196 $post_id = self::$factory->post->create( array( 197 'post_content' => 'Foo Bar', 198 ) ); 199 200 $this->assertEquals( '', wp_ oembed_excerpt_more( '' ) );201 202 $this->go_to( get_post_embed_url( $post_id ) ); 203 204 $actual = wp_ oembed_excerpt_more( '' );192 $this->assertEquals( 'foo bar', wp_embed_excerpt_more( 'foo bar' ) ); 193 } 194 195 function test_wp_embed_excerpt_more() { 196 $post_id = self::$factory->post->create( array( 197 'post_content' => 'Foo Bar', 198 ) ); 199 200 $this->assertEquals( '', wp_embed_excerpt_more( '' ) ); 201 202 $this->go_to( get_post_embed_url( $post_id ) ); 203 204 $actual = wp_embed_excerpt_more( '' ); 205 205 206 206 $expected = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.