- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/media-audio-widget.php
r48939 r51462 256 256 257 257 // Check default outputs. 258 $this->assert Contains( 'preload="none"', $output );259 $this->assert Contains( 'class="wp-audio-shortcode"', $output );260 $this->assert Contains( 'small-audio.mp3', $output );258 $this->assertStringContainsString( 'preload="none"', $output ); 259 $this->assertStringContainsString( 'class="wp-audio-shortcode"', $output ); 260 $this->assertStringContainsString( 'small-audio.mp3', $output ); 261 261 262 262 ob_start(); … … 272 272 273 273 // Custom attributes. 274 $this->assert Contains( 'preload="auto"', $output );275 $this->assert Contains( 'loop="1"', $output );274 $this->assertStringContainsString( 'preload="auto"', $output ); 275 $this->assertStringContainsString( 'loop="1"', $output ); 276 276 } 277 277 … … 323 323 $output = ob_get_clean(); 324 324 325 $this->assert Contains( '<script type="text/html" id="tmpl-wp-media-widget-audio-preview">', $output );325 $this->assertStringContainsString( '<script type="text/html" id="tmpl-wp-media-widget-audio-preview">', $output ); 326 326 } 327 327 }
Note: See TracChangeset
for help on using the changeset viewer.