Changeset 55562 for trunk/tests/phpunit/tests/rewrite/rewriteTags.php
- Timestamp:
- 03/19/2023 12:03:30 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rewrite/rewriteTags.php
r51568 r55562 21 21 } 22 22 23 public function _invalid_rewrite_tags() {24 return array(25 array( 'foo', 'bar' ),26 array( '%', 'bar' ),27 array( '%a', 'bar' ),28 array( 'a%', 'bar' ),29 array( '%%', 'bar' ),30 array( '', 'bar' ),31 );32 }33 34 23 /** 35 * @dataProvider _invalid_rewrite_tags24 * @dataProvider data_add_rewrite_tag_invalid 36 25 * 37 26 * @param string $tag Rewrite tag. … … 45 34 $this->assertSameSets( $this->rewritereplace, $wp_rewrite->rewritereplace ); 46 35 $this->assertSameSets( $this->queryreplace, $wp_rewrite->queryreplace ); 36 } 37 38 public function data_add_rewrite_tag_invalid() { 39 return array( 40 array( 'foo', 'bar' ), 41 array( '%', 'bar' ), 42 array( '%a', 'bar' ), 43 array( 'a%', 'bar' ), 44 array( '%%', 'bar' ), 45 array( '', 'bar' ), 46 ); 47 47 } 48 48
Note: See TracChangeset
for help on using the changeset viewer.