/** * @covers WPSEO_Frontend::page_redirect */ public function test_page_redirect() { // should not redirect on home pages $this->go_to_home(); $this->assertFalse(self::$class_instance->page_redirect()); // create and go to post $post_id = $this->factory->post->create(); $this->go_to(get_permalink($post_id)); // should not redirect when no redirect URL was set $this->assertFalse(self::$class_instance->page_redirect()); }