- Timestamp:
- 10/08/2015 10:27:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-media-extractor.php
r9819 r10221 36 36 37 37 Audio shortcodes: 38 [audio src='http://example.com/source.mp3'] 38 [audio src='http://example.com/source.mp3'] 39 39 [audio src='http://example.com/source.wav' loop='on' autoplay='off' preload='metadata']. 40 40 … … 175 175 176 176 public function test_extract_no_links_from_content_with_invalid_links() { 177 $richtext = "This is some sample text, with links, but not the kinds we want. 177 $richtext = "This is some sample text, with links, but not the kinds we want. 178 178 <a href=''>Empty links should be ignore<a/> and 179 179 <a href='phone:004400'>weird protocols should be ignored, too</a>. … … 280 280 $this->assertArrayHasKey( 'images', $media ); 281 281 $media = array_values( wp_list_filter( $media['images'], array( 'source' => 'html' ) ) ); 282 282 283 283 $this->assertSame( 'http://example.com/image.gif', $media[0]['url'] ); 284 284 $this->assertSame( 'http://example.com/image-in-a-link.gif', $media[1]['url'] );
Note: See TracChangeset
for help on using the changeset viewer.