Changeset 55562 for trunk/tests/phpunit/tests/shortcode.php
- Timestamp:
- 03/19/2023 12:03:30 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/shortcode.php
r55119 r55562 405 405 } 406 406 407 public function data_test_strip_shortcodes() { 407 /** 408 * @ticket 10326 409 * 410 * @dataProvider data_strip_shortcodes 411 * 412 * @param string $expected Expected output. 413 * @param string $content Content to run strip_shortcodes() on. 414 */ 415 public function test_strip_shortcodes( $expected, $content ) { 416 $this->assertSame( $expected, strip_shortcodes( $content ) ); 417 } 418 419 public function data_strip_shortcodes() { 408 420 return array( 409 421 array( 'before', 'before[gallery]' ), … … 421 433 422 434 /** 423 * @ticket 10326424 *425 * @dataProvider data_test_strip_shortcodes426 *427 * @param string $expected Expected output.428 * @param string $content Content to run strip_shortcodes() on.429 */430 public function test_strip_shortcodes( $expected, $content ) {431 $this->assertSame( $expected, strip_shortcodes( $content ) );432 }433 434 /**435 435 * @ticket 37767 436 436 */
Note: See TracChangeset
for help on using the changeset viewer.