url() public méthode

Outputs the canonical URL as OpenGraph URL, which consolidates likes and shares.
public url ( ) : boolean
Résultat boolean
 /**
  * @covers WPSEO_OpenGraph::url
  */
 public function test_url()
 {
     // create and go to post
     $post_id = $this->factory->post->create();
     $url = get_permalink($post_id);
     $this->go_to($url);
     $expected_url = $url;
     $this->assertTrue(self::$class_instance->url());
     $this->expectOutput('<meta property="og:url" content="' . $expected_url . '" />' . "\n");
 }