mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/10620] Added tests
PHPBB3-10620
This commit is contained in:
@@ -247,6 +247,11 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
|||||||
'[quote=Username profile_url=http://fake.example.org]...[/quote]',
|
'[quote=Username profile_url=http://fake.example.org]...[/quote]',
|
||||||
'<blockquote><div><cite>Username wrote:</cite>...</div></blockquote>'
|
'<blockquote><div><cite>Username wrote:</cite>...</div></blockquote>'
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
// From phpbb_textformatter_s9e_utils_test::test_generate_quote()
|
||||||
|
'[quote=\'[quote="foo"]\']...[/quote]',
|
||||||
|
'<blockquote><div><cite>[quote="foo"] wrote:</cite>...</div></blockquote>'
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -175,6 +175,36 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
|
|||||||
),
|
),
|
||||||
'[quote=user post_id=123 url=http://example.org]...[/quote]',
|
'[quote=user post_id=123 url=http://example.org]...[/quote]',
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'...',
|
||||||
|
array('author' => ' '),
|
||||||
|
'[quote=" "]...[/quote]',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'...',
|
||||||
|
array('author' => 'foo bar'),
|
||||||
|
'[quote="foo bar"]...[/quote]',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'...',
|
||||||
|
array('author' => '\\'),
|
||||||
|
'[quote="\\\\"]...[/quote]',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'...',
|
||||||
|
array('author' => '[quote="foo"]'),
|
||||||
|
'[quote=\'[quote="foo"]\']...[/quote]',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'...',
|
||||||
|
array('author' => '""'),
|
||||||
|
'[quote=\'""\']...[/quote]',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'...',
|
||||||
|
array('author' => "''"),
|
||||||
|
'[quote="\'\'"]...[/quote]',
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
'This is a long quote that is definitely going to exceed 80 characters',
|
'This is a long quote that is definitely going to exceed 80 characters',
|
||||||
array(),
|
array(),
|
||||||
|
Reference in New Issue
Block a user