Make WordPress Core

Changeset 40559


Ignore:
Timestamp:
04/30/2017 11:18:43 AM (8 years ago)
Author:
johnbillion
Message:

Posts, Post Types: Revert [40558] pending investigation.

See #18375

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/template.php

    r40558 r40559  
    195195
    196196    public function test_page_template_hierarchy() {
    197         $this->assertEquals( 'templates/page.php', get_page_template_slug( self::$page ) );
    198197        $this->assertTemplateHierarchy( get_permalink( self::$page ), array(
    199198            'templates/page.php',
     
    210209     */
    211210    public function test_single_template_hierarchy_for_post() {
    212         $this->assertEquals( 'templates/post.php', get_page_template_slug( self::$post ) );
    213211        $this->assertTemplateHierarchy( get_permalink( self::$post ), array(
    214212            'templates/post.php',
     
    246244        add_post_meta( $cpt->ID, '_wp_page_template', 'templates/cpt.php' );
    247245
    248         $this->assertEquals( 'templates/cpt.php', get_page_template_slug( $cpt ) );
    249246        $this->assertTemplateHierarchy( get_permalink( $cpt ), array(
    250247            'templates/cpt.php',
     
    286283        ) );
    287284
    288         add_post_meta( $attachment->ID, '_wp_page_template', 'templates/attachment.php' );
    289 
    290         $this->assertEquals( 'templates/attachment.php', get_page_template_slug( $attachment ) );
     285        add_post_meta( $attachment, '_wp_page_template', 'templates/cpt.php' );
     286
    291287        $this->assertTemplateHierarchy( get_permalink( $attachment ), array(
    292             'templates/attachment.php',
    293288            'image-jpeg.php',
    294289            'jpeg.php',
Note: See TracChangeset for help on using the changeset viewer.