/**
  * @covers WPSEO_Frontend::is_posts_page
  */
 public function test_is_posts_page()
 {
     // on home with show_on_front != page
     update_option('show_on_front', 'something');
     $this->go_to_home();
     $this->assertFalse(self::$class_instance->is_posts_page());
     // on home with show_on_front = page
     update_option('show_on_front', 'page');
     $this->assertTrue(self::$class_instance->is_posts_page());
     // go to different post but preserve previous options
     $post_id = $this->factory->post->create();
     $this->go_to(get_permalink($post_id));
     $this->assertFalse(self::$class_instance->is_posts_page());
 }