WordPress.org

Make WordPress Core

Changeset 480 in tests


Ignore:
Timestamp:
11/28/2011 10:08:40 PM (6 years ago)
Author:
nacin
Message:

Second thought, convert_to_screen( $taxonomy ) is a bad idea.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_admin_includes_screen.php

    r479 r480  
    119119        $this->assertEquals( $screen->base, 'edit-tags' );
    120120        $this->assertEquals( $screen->id, 'edit-old-or-new' );
    121 
    122         // convert_to_screen() can work with a taxonomy name, even though it doesn't occur in the wild.
    123         $screen2 = convert_to_screen( 'old-or-new' );
    124         $this->assertEquals( $screen2->taxonomy, 'old-or-new' );
    125         $this->assertEquals( $screen2->base, 'edit-tags' );
    126         $this->assertEquals( $screen2->id, 'edit-old-or-new' );
    127 
    128         // These two convert_to_screen() calls should yield the same WP_Screen.
    129         $this->assertSame( $screen, $screen2 );
    130121    }
    131122
Note: See TracChangeset for help on using the changeset viewer.