Location: PHPKode > scripts > wpStoreCart > wpstorecart/test/nb-wordpress-tests/test_go_to.php
<?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() );
	}
}
Return current item: wpStoreCart