- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/media-gallery-widget.php
r51415 r51462 82 82 $output = ob_get_clean(); 83 83 84 $this->assert Contains( 'gallery-columns-3', $output );85 $this->assert Contains( 'gallery-size-thumbnail', $output );86 $this->assert Contains( 'canola', $output );87 $this->assert Contains( 'waffles', $output );84 $this->assertStringContainsString( 'gallery-columns-3', $output ); 85 $this->assertStringContainsString( 'gallery-size-thumbnail', $output ); 86 $this->assertStringContainsString( 'canola', $output ); 87 $this->assertStringContainsString( 'waffles', $output ); 88 88 } 89 89 … … 104 104 105 105 $after = implode( '', wp_scripts()->registered['media-gallery-widget']->extra['after'] ); 106 $this->assert Contains( 'wp.mediaWidgets.modelConstructors[ "media_gallery" ].prototype', $after );106 $this->assertStringContainsString( 'wp.mediaWidgets.modelConstructors[ "media_gallery" ].prototype', $after ); 107 107 } 108 108 … … 200 200 $output = ob_get_clean(); 201 201 202 $this->assert Contains( '<script type="text/html" id="tmpl-wp-media-widget-gallery-preview">', $output );202 $this->assertStringContainsString( '<script type="text/html" id="tmpl-wp-media-widget-gallery-preview">', $output ); 203 203 } 204 204 }
Note: See TracChangeset
for help on using the changeset viewer.