This commit is contained in:
Matthias Pfefferle 2019-08-18 22:34:28 +02:00
parent 4dae4fc350
commit aa53bec4e4

View file

@ -14,13 +14,14 @@ class Test_Activitypub_Hashtag extends WP_UnitTestCase {
}
public function the_content_provider() {
$object_link = get_term_by( 'name', 'object', 'post_tag' );
$object = get_term_by( 'name', 'object', 'post_tag' );
$link = get_tag_link( $object );
return array(
array( 'test', 'test' ),
array( '#test', '#test' ),
array( 'hallo #test test', 'hallo #test test' ),
array( 'hallo #object test', 'hallo <a rel="tag" class="u-tag u-category" href="' . $object_link . '">#object</a> test' ),
array( 'hallo #object test', 'hallo <a rel="tag" class="u-tag u-category" href="' . $link . '">#object</a> test' ),
);
}
}