Changeset 35225 for trunk/tests/phpunit/tests/rewrite/numericSlugs.php
- Timestamp:
- 10/16/2015 09:04:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rewrite/numericSlugs.php
r34810 r35225 10 10 public function setUp() { 11 11 parent::setUp(); 12 $this->author_id = $this->factory->user->create( array( 'role' => 'editor' ) );12 $this->author_id = self::$factory->user->create( array( 'role' => 'editor' ) ); 13 13 14 14 // Override the post/archive slug collision prevention in `wp_unique_post_slug()`. … … 24 24 $this->set_permalink_structure( '/%postname%/' ); 25 25 26 $id = $this->factory->post->create( array(26 $id = self::$factory->post->create( array( 27 27 'post_author' => $this->author_id, 28 28 'post_status' => 'publish', … … 52 52 $this->set_permalink_structure( '/%postname%/' ); 53 53 54 $id = $this->factory->post->create( array(54 $id = self::$factory->post->create( array( 55 55 'post_author' => $this->author_id, 56 56 'post_status' => 'publish', … … 77 77 $this->set_permalink_structure( '/%postname%/' ); 78 78 79 $id = $this->factory->post->create( array(79 $id = self::$factory->post->create( array( 80 80 'post_author' => $this->author_id, 81 81 'post_status' => 'publish', … … 93 93 $this->set_permalink_structure( '/%postname%/' ); 94 94 95 $id = $this->factory->post->create( array(95 $id = self::$factory->post->create( array( 96 96 'post_author' => $this->author_id, 97 97 'post_status' => 'publish', … … 107 107 $this->set_permalink_structure( '/%year%/%postname%/' ); 108 108 109 $id = $this->factory->post->create( array(109 $id = self::$factory->post->create( array( 110 110 'post_author' => $this->author_id, 111 111 'post_status' => 'publish', … … 124 124 $this->set_permalink_structure( '/%year%/%postname%/' ); 125 125 126 $id = $this->factory->post->create( array(126 $id = self::$factory->post->create( array( 127 127 'post_author' => $this->author_id, 128 128 'post_status' => 'publish', … … 139 139 $this->set_permalink_structure( '/%year%/%postname%/' ); 140 140 141 $id = $this->factory->post->create( array(141 $id = self::$factory->post->create( array( 142 142 'post_author' => $this->author_id, 143 143 'post_status' => 'publish', … … 156 156 $this->set_permalink_structure( '/%year%/%postname%/' ); 157 157 158 $id = $this->factory->post->create( array(158 $id = self::$factory->post->create( array( 159 159 'post_author' => $this->author_id, 160 160 'post_status' => 'publish', … … 171 171 $this->set_permalink_structure( '/%year%/%postname%/' ); 172 172 173 $id = $this->factory->post->create( array(173 $id = self::$factory->post->create( array( 174 174 'post_author' => $this->author_id, 175 175 'post_status' => 'publish', … … 187 187 $this->set_permalink_structure( '/%year%/%postname%/' ); 188 188 189 $id = $this->factory->post->create( array(189 $id = self::$factory->post->create( array( 190 190 'post_author' => $this->author_id, 191 191 'post_status' => 'publish', … … 201 201 $this->set_permalink_structure( '/%year%/%postname%/' ); 202 202 203 $id = $this->factory->post->create( array(203 $id = self::$factory->post->create( array( 204 204 'post_author' => $this->author_id, 205 205 'post_status' => 'publish', … … 217 217 $this->set_permalink_structure( '/%year%/%postname%/' ); 218 218 219 $id = $this->factory->post->create( array(219 $id = self::$factory->post->create( array( 220 220 'post_author' => $this->author_id, 221 221 'post_status' => 'publish', … … 231 231 $this->set_permalink_structure( '/%year%/%monthnum%/%postname%/' ); 232 232 233 $id = $this->factory->post->create( array(233 $id = self::$factory->post->create( array( 234 234 'post_author' => $this->author_id, 235 235 'post_status' => 'publish', … … 248 248 $this->set_permalink_structure( '/%year%/%monthnum%/%postname%/' ); 249 249 250 $id = $this->factory->post->create( array(250 $id = self::$factory->post->create( array( 251 251 'post_author' => $this->author_id, 252 252 'post_status' => 'publish', … … 263 263 $this->set_permalink_structure( '/%year%/%monthnum%/%postname%/' ); 264 264 265 $id = $this->factory->post->create( array(265 $id = self::$factory->post->create( array( 266 266 'post_author' => $this->author_id, 267 267 'post_status' => 'publish', … … 279 279 $this->set_permalink_structure( '/%year%/%monthnum%/%postname%/' ); 280 280 281 $id = $this->factory->post->create( array(281 $id = self::$factory->post->create( array( 282 282 'post_author' => $this->author_id, 283 283 'post_status' => 'publish', … … 293 293 $this->set_permalink_structure( '/%year%/%monthnum%/%postname%/' ); 294 294 295 $id = $this->factory->post->create( array(295 $id = self::$factory->post->create( array( 296 296 'post_author' => $this->author_id, 297 297 'post_status' => 'publish', … … 315 315 316 316 // Make sure a post is published in 2013/02, to avoid 404s. 317 $this->factory->post->create( array(317 self::$factory->post->create( array( 318 318 'post_author' => $this->author_id, 319 319 'post_status' => 'publish', … … 323 323 ) ); 324 324 325 $id = $this->factory->post->create( array(325 $id = self::$factory->post->create( array( 326 326 'post_author' => $this->author_id, 327 327 'post_status' => 'publish', … … 343 343 344 344 // Make sure a post is published on 2015/01/01, to avoid 404s. 345 $this->factory->post->create( array(345 self::$factory->post->create( array( 346 346 'post_author' => $this->author_id, 347 347 'post_status' => 'publish', … … 351 351 ) ); 352 352 353 $id = $this->factory->post->create( array(353 $id = self::$factory->post->create( array( 354 354 'post_author' => $this->author_id, 355 355 'post_status' => 'publish', … … 370 370 $this->set_permalink_structure( '/%year%/%postname%/' ); 371 371 372 $id = $this->factory->post->create( array(372 $id = self::$factory->post->create( array( 373 373 'post_author' => $this->author_id, 374 374 'post_status' => 'publish', … … 386 386 $this->set_permalink_structure( '/%year%/%postname%/' ); 387 387 388 $id = $this->factory->post->create( array(388 $id = self::$factory->post->create( array( 389 389 'post_author' => $this->author_id, 390 390 'post_status' => 'publish', … … 402 402 $this->set_permalink_structure( '/%year%/%postname%/' ); 403 403 404 $id = $this->factory->post->create( array(404 $id = self::$factory->post->create( array( 405 405 'post_author' => $this->author_id, 406 406 'post_status' => 'publish', … … 419 419 $this->set_permalink_structure( '/%year%/%postname%/' ); 420 420 421 $id = $this->factory->post->create( array(421 $id = self::$factory->post->create( array( 422 422 'post_author' => $this->author_id, 423 423 'post_status' => 'publish',
Note: See TracChangeset
for help on using the changeset viewer.