fix php 5.3 issue

This commit is contained in:
Matthias Pfefferle 2019-08-18 22:24:34 +02:00
parent c9c05e263f
commit 81357da49d

View file

@ -16,11 +16,11 @@ class Test_Activitypub_Hashtag extends WP_UnitTestCase {
public function the_content_provider() {
$object_link = get_tag_link( 'object' );
return [
[ 'test', 'test' ],
[ '#test', '#test' ],
[ 'hallo #test test', 'hallo #test test' ],
[ 'hallo #object test', 'hallo <a rel="tag" class="u-tag u-category" href="' . $object_link . '">#object</a> test' ],
];
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' ),
);
}
}