Changeset 52010 for trunk/tests/phpunit/tests/block-template.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-template.php
r51568 r52010 44 44 * Regression: https://github.com/WordPress/gutenberg/issues/31399. 45 45 */ 46 function test_custom_page_php_template_takes_precedence_over_all_other_templates() {46 public function test_custom_page_php_template_takes_precedence_over_all_other_templates() { 47 47 $custom_page_template = 'templates/full-width.php'; 48 48 $custom_page_template_path = get_stylesheet_directory() . '/' . $custom_page_template; … … 61 61 * Covers: https://github.com/WordPress/gutenberg/pull/30438. 62 62 */ 63 function test_custom_page_block_template_takes_precedence_over_all_other_templates() {63 public function test_custom_page_block_template_takes_precedence_over_all_other_templates() { 64 64 global $_wp_current_template_content; 65 65 … … 81 81 * Regression: https://github.com/WordPress/gutenberg/issues/31652. 82 82 */ 83 function test_template_remains_unchanged_if_templates_array_is_empty() {83 public function test_template_remains_unchanged_if_templates_array_is_empty() { 84 84 $resolved_template_path = locate_block_template( '', 'search', array() ); 85 85 $this->assertSame( '', $resolved_template_path );
Note: See TracChangeset
for help on using the changeset viewer.