assertEquals( $content_with_hashtag, $content );
}
public function the_content_provider() {
$code = 'text with some https://test.de and tag inside
';
$style = <<
ENDSTYLE;
$pre = <<
Please don't https://test.de
this.
ENDPRE;
$textarea = '';
$a_href = 'Text';
return array(
array( 'https://wordpress.org/plugins/activitypub/', 'https://wordpress.org/plugins/activitypub/' ),
array( 'http://wordpress.org/', 'http://wordpress.org/' ),
array( 'https://test.org/?get=täst', 'https://test.org/?get=täst' ),
array( 'https://täst.org/', 'https://täst.org/' ),
array( 'https://wordpress.org/index.html', 'https://wordpress.org/index.html' ),
array( 'ftp://test.de/', 'ftp://test.de/' ),
array( 'hello https://www.test.de world https://wordpress.org/ test', 'hello https://www.test.de world https://wordpress.org/ test' ),
array( 'hello https://www.test.de test', 'hello https://www.test.de test' ),
array( 'hello www.test.de test', 'hello https://www.test.de test' ),
array( 'hello https://test:test@test.de test', 'hello https://test:test@test.de test' ),
array( $code, $code ),
array( $style, $style ),
array( $textarea, $textarea ),
array( $pre, $pre ),
array( $a_href, $a_href ),
);
}
}