Changeset 34802 for trunk/tests/phpunit/tests/post/wpUniquePostSlug.php
- Timestamp:
- 10/03/2015 05:14:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpUniquePostSlug.php
r33262 r34802 182 182 $found = wp_unique_post_slug( '2015', $p, 'publish', 'post', 0 ); 183 183 $this->assertEquals( '2015-2', $found ); 184 185 $wp_rewrite->set_permalink_structure( '' );186 flush_rewrite_rules();187 184 } 188 185 … … 204 201 $found = wp_unique_post_slug( '2015', $p, 'publish', 'post', 0 ); 205 202 $this->assertEquals( '2015-2', $found ); 206 207 $wp_rewrite->set_permalink_structure( '' );208 flush_rewrite_rules();209 203 } 210 204 … … 225 219 $found = wp_unique_post_slug( '2015', $p, 'publish', 'post', 0 ); 226 220 $this->assertEquals( '2015', $found ); 227 228 $wp_rewrite->set_permalink_structure( '' );229 flush_rewrite_rules();230 221 } 231 222 … … 246 237 $found = wp_unique_post_slug( '11', $p, 'publish', 'post', 0 ); 247 238 $this->assertEquals( '11-2', $found ); 248 249 $wp_rewrite->set_permalink_structure( '' );250 flush_rewrite_rules();251 239 } 252 240 … … 267 255 $found = wp_unique_post_slug( '11', $p, 'publish', 'post', 0 ); 268 256 $this->assertEquals( '11', $found ); 269 270 $wp_rewrite->set_permalink_structure( '' );271 flush_rewrite_rules();272 257 } 273 258 … … 288 273 $found = wp_unique_post_slug( '13', $p, 'publish', 'post', 0 ); 289 274 $this->assertEquals( '13', $found ); 290 291 $wp_rewrite->set_permalink_structure( '' );292 flush_rewrite_rules();293 275 } 294 276 … … 309 291 $found = wp_unique_post_slug( '30', $p, 'publish', 'post', 0 ); 310 292 $this->assertEquals( '30-2', $found ); 311 312 $wp_rewrite->set_permalink_structure( '' );313 flush_rewrite_rules();314 293 } 315 294 … … 330 309 $found = wp_unique_post_slug( '30', $p, 'publish', 'post', 0 ); 331 310 $this->assertEquals( '30', $found ); 332 333 $wp_rewrite->set_permalink_structure( '' );334 flush_rewrite_rules();335 311 } 336 312 … … 351 327 $found = wp_unique_post_slug( '32', $p, 'publish', 'post', 0 ); 352 328 $this->assertEquals( '32', $found ); 353 354 $wp_rewrite->set_permalink_structure( '' );355 flush_rewrite_rules();356 329 } 357 330 }
Note: See TracChangeset
for help on using the changeset viewer.