WordPress.org

Make WordPress Core

Changeset 470 in tests


Ignore:
Timestamp:
11/02/2011 04:30:45 AM (7 years ago)
Author:
nacin
Message:

For #WP19108.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_admin_includes_screen.php

    r469 r470  
    9292        }
    9393    }
     94
     95    function test_convert_to_screen_with_post_type() {
     96        $screen = convert_to_screen( 'page' );
     97        $this->assertEquals( $screen->post_type, 'page' );
     98        $this->assertEquals( $screen->base, 'post' );
     99        $this->assertEquals( $screen->id, 'page' );
     100    }
    94101}
Note: See TracChangeset for help on using the changeset viewer.