You appear to be a bot. Output may be restricted
Description
Usage
Tests_Admin_Includes_Post::test_get_sample_permalink_should_allow_daylike_slugs_if_permastruct_does_not_cause_an_archive_conflict();
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_allow_daylike_slugs_if_permastruct_does_not_cause_an_archive_conflict() { $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); $p = self::factory()->post->create( array( 'post_name' => '30', ) ); $found = get_sample_permalink( $p ); $this->assertEquals( '30', $found[1] ); }