• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Tests_Admin_Includes_Post::test_get_sample_permalink_should_avoid_slugs_that_would_create_clashes_with_year_archives() –

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] );
  }
 

 View on GitHub

Published: 26th November 2019 | Last updated: 27th November 2019

Primary Sidebar

Information

Function name: Tests_Admin_Includes_Post::test_get_sample_permalink_should_avoid_slugs_that_would_create_clashes_with_year_archives
Class ref: Tests_Admin_Includes_Post
Plugin ref: WordPress develop tests
Version: 5.3
Sourcefile: phpunit/tests/admin/includesPost.php
File ref: phpunit/tests/admin/includesPost.php
Deprecated?: No
API Letters: A,I,P,T

Footer

WordPress develop tests
WordPress develop tests
WordPress develop tests a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  develop.wp-a2z.org
© Copyright WordPress develop tests 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites