/** * @covers WPSEO_OpenGraph::type */ public function test_type() { $this->assertEquals('website', self::$class_instance->type(false)); $category_id = wp_create_category('WordPress SEO'); $this->go_to(get_category_link($category_id)); $this->assertEquals('object', self::$class_instance->type(false)); // create and go to post $post_id = $this->factory->post->create(); $this->go_to(get_permalink($post_id)); $this->assertEquals('article', self::$class_instance->type(false)); }