Changeset 50282 for trunk/tests/phpunit/tests/canonical/postStatus.php
- Timestamp:
- 02/10/2021 05:38:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical/postStatus.php
r50132 r50282 216 216 * 217 217 * @ticket 5272 218 * @dataProvider data_canonical_redirects_to_ ugly_permalinks218 * @dataProvider data_canonical_redirects_to_plain_permalinks 219 219 * 220 220 * @param string $post_key Post key used for creating fixtures. … … 223 223 * @param string $expected Expected URL. 224 224 */ 225 public function test_canonical_redirects_to_ ugly_permalinks( $post_key, $user_role, $requested, $expected ) {225 public function test_canonical_redirects_to_plain_permalinks( $post_key, $user_role, $requested, $expected ) { 226 226 wp_set_current_user( self::$users[ $user_role ] ); 227 227 $this->set_permalink_structure( '' ); … … 240 240 241 241 /** 242 * Data provider for test_canonical_redirects_to_ ugly_permalinks.242 * Data provider for test_canonical_redirects_to_plain_permalinks. 243 243 * 244 244 * @return array[] Array of arguments for tests { … … 249 249 * } 250 250 */ 251 function data_canonical_redirects_to_ ugly_permalinks() {251 function data_canonical_redirects_to_plain_permalinks() { 252 252 $data = array(); 253 253 $all_user_list = array( 'anon', 'subscriber', 'content_author', 'editor' ); … … 264 264 foreach ( $all_user_list as $user ) { 265 265 /* 266 * In the event `redirect_canonical()` is updated to redirect uglypermalinks267 * to a canonical uglyversion, these expected values can be changed.266 * In the event `redirect_canonical()` is updated to redirect plain permalinks 267 * to a canonical plain version, these expected values can be changed. 268 268 */ 269 269 $data[] = array( … … 302 302 foreach ( $select_allow_list as $user ) { 303 303 /* 304 * In the event `redirect_canonical()` is updated to redirect uglypermalinks305 * to a canonical uglyversion, these expected values can be changed.304 * In the event `redirect_canonical()` is updated to redirect plain permalinks 305 * to a canonical plain version, these expected values can be changed. 306 306 */ 307 307 $data[] = array( … … 338 338 foreach ( $select_block_list as $user ) { 339 339 /* 340 * In the event `redirect_canonical()` is updated to redirect uglypermalinks341 * to a canonical uglyversion, these expected values MUST NOT be changed.340 * In the event `redirect_canonical()` is updated to redirect plain permalinks 341 * to a canonical plain version, these expected values MUST NOT be changed. 342 342 */ 343 343 $data[] = array( … … 376 376 foreach ( $all_user_list as $user ) { 377 377 /* 378 * In the event `redirect_canonical()` is updated to redirect uglypermalinks379 * to a canonical uglyversion, these expected values MUST NOT be changed.378 * In the event `redirect_canonical()` is updated to redirect plain permalinks 379 * to a canonical plain version, these expected values MUST NOT be changed. 380 380 */ 381 381 $data[] = array( … … 414 414 foreach ( $all_user_list as $user ) { 415 415 /* 416 * In the event `redirect_canonical()` is updated to redirect uglypermalinks417 * to a canonical uglyversion, these expected values MUST NOT be changed.416 * In the event `redirect_canonical()` is updated to redirect plain permalinks 417 * to a canonical plain version, these expected values MUST NOT be changed. 418 418 */ 419 419 $data[] = array(
Note: See TracChangeset
for help on using the changeset viewer.