You appear to be a bot. Output may be restricted
Description
Usage
Tests_Admin_Includes_Post::test_get_sample_permalink_html_should_use_default_permalink_for_view_post_link_when_pretty_permalinks_are_disabled();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/admin/includesPost.php
Lines:
1 to 17 of 17
public function test_get_sample_permalink_html_should_use_default_permalink_for_view_post_link_when_pretty_permalinks_are_disabled() { wp_set_current_user( self::$admin_id ); $future_date = gmdate( 'Y-m-d H:i:s', time() + 100 ); $p = self::factory()->post->create( array( 'post_status' => 'future', 'post_name' => 'foo', 'post_date' => $future_date, ) ); $found = get_sample_permalink_html( $p ); $this->assertContains( 'href="' . get_option( 'home' ) . '/?p=' . $p . '"', $found ); $this->assertContains( '>' . get_option( 'home' ) . '/?p=' . $p . '<', $found ); }