/**
  * @covers WPSEO_Twitter::site_domain
  */
 public function test_author_twitter()
 {
     // create user, create post, attach user as author
     $user_id = $this->factory->user->create(array('role' => 'administrator'));
     $post_id = $this->factory->post->create(array('post_title' => 'Sample Post', 'post_type' => 'post', 'post_status' => 'publish', 'post_author' => $user_id));
     // go to post we just created
     $this->go_to(get_permalink($post_id));
     // test fallback to twitter_site option
     self::$class_instance->options['twitter_site'] = 'yoast';
     self::$class_instance->author();
     $expected = $this->metatag('creator', '@yoast');
     $this->expectOutput($expected);
     // create user, give twitter ID, this should now overwrite the site's settings
     update_user_meta($user_id, 'twitter', '@jdevalk');
     $expected = $this->metatag('creator', '@jdevalk');
     $this->go_to(get_permalink($post_id));
     // test user meta
     self::$class_instance->author();
     $this->expectOutput($expected);
 }
 public function author()
 {
     return parent::author();
 }