You appear to be a bot. Output may be restricted
Description
Usage
Tests_Template::test_attachment_template_hierarchy();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/template.php
Lines:
1 to 23 of 23
public function test_attachment_template_hierarchy() { $attachment = self::factory()->attachment->create_and_get( array( 'post_name' => 'attachment-name-😀', 'file' => 'image.jpg', 'post_mime_type' => 'image/jpeg', ) ); $this->assertTemplateHierarchy( get_permalink( $attachment ), array( 'image-jpeg.php', 'jpeg.php', 'image.php', 'attachment.php', 'single-attachment-attachment-name-😀.php', 'single-attachment-attachment-name-%f0%9f%98%80.php', 'single-attachment.php', 'single.php', 'singular.php', ) ); }