Changeset 48516
- Timestamp:
- 07/20/2020 03:47:37 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r48496 r48516 2948 2948 } 2949 2949 2950 2951 2952 2950 /** 2951 * @ticket 22101 2952 */ 2953 2953 function test_gallery_shortcode_when_is_feed_true() { 2954 2954 2955 2955 $this->go_to( '/?feed=rss2' ); 2956 2956 2957 // Default: Links to image attachment page url2957 // Default: Links to image attachment page URL. 2958 2958 $actual = gallery_shortcode( 2959 2959 array( … … 2963 2963 $this->assertContains( '?attachment_id=', $actual ); 2964 2964 2965 // File: Links to image file url2965 // File: Links to image file URL. 2966 2966 $actual = gallery_shortcode( 2967 2967 array( … … 2970 2970 ) 2971 2971 ); 2972 $this->assert True( 2 ===substr_count( $actual, '.jpg' ) );2973 2974 // None: Does not link 2972 $this->assertEquals( 2, substr_count( $actual, '.jpg' ) ); 2973 2974 // None: Does not link. 2975 2975 $actual = gallery_shortcode( 2976 2976 array( … … 2979 2979 ) 2980 2980 ); 2981 $this->assert False( strpos( $actual, '<a ' ));2981 $this->assertNotContains( '<a ', $actual ); 2982 2982 } 2983 2983
Note: See TracChangeset
for help on using the changeset viewer.