Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 332 Bytes
<?php
class WP_Test_Go_To extends WP_UnitTestCase {
function test_single() {
$this->go_to( get_permalink( 1 ) );
$this->assertTrue( is_single(), 'This is not a single post page.' );
$this->assertTrue( have_posts() );
}
function test_404() {
$this->go_to( site_url( '?p=100' ) );
$this->assertTrue( is_404() );
}
}
Something went wrong with that request. Please try again.