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() { public function the_content_provider() {
$object_link = get_tag_link( 'object' ); $object_link = get_tag_link( 'object' );
return [ return array(
[ 'test', 'test' ], array( 'test', 'test' ),
[ '#test', '#test' ], array( '#test', '#test' ),
[ 'hallo #test test', 'hallo #test test' ], array( 'hallo #test test', 'hallo #test test' ),
[ '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="' . $object_link . '">#object</a> test' ),
]; );
} }
} }