You appear to be a bot. Output may be restricted
Description
Usage
Tests_Admin_Includes_Post::test_get_sample_permalink_should_avoid_slugs_that_would_create_clashes_with_year_archives();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/admin/includesPost.php
Lines:
1 to 13 of 13
public function test_get_sample_permalink_should_avoid_slugs_that_would_create_clashes_with_year_archives() { $this->set_permalink_structure( '/%postname%/' ); $p = self::factory()->post->create( array( 'post_name' => '2015', ) ); $found = get_sample_permalink( $p ); $this->assertEquals( '2015-2', $found[1] ); }