mirror of
https://github.com/friendica/friendica
synced 2025-01-22 17:39:47 +00:00
Add tests for bug #6857
This commit is contained in:
parent
8f96e383a7
commit
fedf29e023
1 changed files with 17 additions and 1 deletions
|
@ -86,6 +86,22 @@ class BBCodeTest extends MockedTest
|
||||||
'data' => 'http://example/path',
|
'data' => 'http://example/path',
|
||||||
'assertHTML' => false
|
'assertHTML' => false
|
||||||
],
|
],
|
||||||
|
'bug-6857-domain-start' => [
|
||||||
|
'data' => "http://\nexample.com",
|
||||||
|
'assertHTML' => false
|
||||||
|
],
|
||||||
|
'bug-6857-domain-end' => [
|
||||||
|
'data' => "http://example\n.com",
|
||||||
|
'assertHTML' => false
|
||||||
|
],
|
||||||
|
'bug-6857-tld' => [
|
||||||
|
'data' => "http://example.\ncom",
|
||||||
|
'assertHTML' => false
|
||||||
|
],
|
||||||
|
'bug-6857-end' => [
|
||||||
|
'data' => "http://example.com\ntest",
|
||||||
|
'assertHTML' => false
|
||||||
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,4 +124,4 @@ class BBCodeTest extends MockedTest
|
||||||
|
|
||||||
$this->assertEquals($assert, $output);
|
$this->assertEquals($assert, $output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue