mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 20:44:01 +01:00
[ticket/14527] Add tests for reverted improper fix
PHPBB3-14527
This commit is contained in:
parent
58678ff21c
commit
dad531e4b2
@ -16,6 +16,15 @@ require_once dirname(__FILE__) . '/../../phpBB/includes/functions_content.php';
|
||||
|
||||
class phpbb_text_processing_decode_message_test extends phpbb_test_case
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
global $phpbb_dispatcher;
|
||||
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider get_legacy_tests
|
||||
*/
|
||||
@ -40,12 +49,20 @@ class phpbb_text_processing_decode_message_test extends phpbb_test_case
|
||||
),
|
||||
array(
|
||||
'<!-- w --><a class="postlink" href="http://www.phpbb.com">www.phpbb.com</a><!-- w -->',
|
||||
'www.phpbb.com'
|
||||
'http://www.phpbb.com'
|
||||
),
|
||||
array(
|
||||
'<!-- m --><a class="postlink" href="http://www.phpbb.com">http://www.phpbb.com</a><!-- m -->',
|
||||
'http://www.phpbb.com'
|
||||
),
|
||||
array(
|
||||
'<!-- m --><a class="postlink" href="http://www.phpbb.com">this is just text</a><!-- m -->',
|
||||
'http://www.phpbb.com'
|
||||
),
|
||||
array(
|
||||
'<!-- m --><a class="postlink" href="http://www.phpbb.com/some/more/link/that/is/shortened">http://www.phpbb.com/some/ ... /shortened</a><!-- m -->',
|
||||
'http://www.phpbb.com/some/more/link/that/is/shortened'
|
||||
),
|
||||
/**
|
||||
* Fails as per PHPBB3-8420
|
||||
* @link http://tracker.phpbb.com/browse/PHPBB3-8420
|
||||
|
Loading…
x
Reference in New Issue
Block a user