- Timestamp:
- 04/08/2024 04:45:22 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-templates/getTemplateHierarchy.php
r55194 r57944 42 42 43 43 /** 44 * @ticket 60846 45 */ 46 public function test_get_template_hierarchy_with_hooks() { 47 add_filter( 48 'date_template_hierarchy', 49 function ( $templates ) { 50 return array_merge( array( 'date-custom' ), $templates ); 51 } 52 ); 53 $expected = array( 'date-custom', 'date', 'archive', 'index' ); 54 $this->assertSame( $expected, get_template_hierarchy( 'date' ) ); 55 } 56 57 /** 44 58 * Data provider. 45 59 *
Note: See TracChangeset
for help on using the changeset viewer.