You appear to be a bot. Output may be restricted
Description
Regression: https://github.com/WordPress/gutenberg/issues/31399.
Usage
Block_Template_Test::test_custom_page_php_template_takes_precedence_over_all_other_templates();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/block-template.php
Lines:
1 to 14 of 14
public function test_custom_page_php_template_takes_precedence_over_all_other_templates() { $custom_page_template = 'templates/full-width.php'; $custom_page_template_path = get_stylesheet_directory() . '/' . $custom_page_template; $type = 'page'; $templates = array( $custom_page_template, 'page-slug.php', 'page-1.php', 'page.php', ); $resolved_template_path = locate_block_template( $custom_page_template_path, $type, $templates ); $this->assertSame( $custom_page_template_path, $resolved_template_path ); }