You appear to be a bot. Output may be restricted
Description
Usage
Tests_Template::test_single_template_hierarchy_for_custom_post_type_with_template();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/template.php
Lines:
1 to 21 of 21
public function test_single_template_hierarchy_for_custom_post_type_with_template() { $cpt = self::factory()->post->create_and_get( array( 'post_type' => 'cpt', 'post_name' => 'cpt-name-😀', ) ); add_post_meta( $cpt->ID, '_wp_page_template', 'templates/cpt.php' ); $this->assertTemplateHierarchy( get_permalink( $cpt ), array( 'templates/cpt.php', 'single-cpt-cpt-name-😀.php', 'single-cpt-cpt-name-%f0%9f%98%80.php', 'single-cpt.php', 'single.php', 'singular.php', ) ); }