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_day_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_day_archives() { $this->set_permalink_structure( '/%year%/%monthnum%/%postname%/' ); $p = self::factory()->post->create( array( 'post_name' => '30', ) ); $found = get_sample_permalink( $p ); $this->assertEquals( '30-2', $found[1] ); }