Changeset 48370 for trunk/tests/phpunit/tests/general/template.php
- Timestamp:
- 07/07/2020 11:00:21 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/template.php
r48209 r48370 679 679 $this->assertFalse( get_template_part( 'non-existing-template' ) ); 680 680 } 681 682 /** 683 * @ticket 21676 684 */ 685 function test_get_template_part_passes_arguments_to_template() { 686 $this->expectOutputRegex( '/{"foo":"baz"}/' ); 687 688 get_template_part( 'template', 'part', array( 'foo' => 'baz' ) ); 689 } 681 690 }
Note: See TracChangeset
for help on using the changeset viewer.