mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Updated HTMLTextTest to test for correct testFirstSentence, specifically a past failing test case. fixes #1422
This commit is contained in:
parent
284245c3de
commit
4d5bd451bb
@ -103,6 +103,8 @@ class HTMLTextTest extends SapphireTest {
|
|||||||
'<h1>should ignore</h1><p>First Mr. sentence. Second sentence.</p>' => 'First Mr. sentence.',
|
'<h1>should ignore</h1><p>First Mr. sentence. Second sentence.</p>' => 'First Mr. sentence.',
|
||||||
"<h1>should ignore</h1><p>Sentence with {$many}words. Second sentence.</p>"
|
"<h1>should ignore</h1><p>Sentence with {$many}words. Second sentence.</p>"
|
||||||
=> "Sentence with {$many}words.",
|
=> "Sentence with {$many}words.",
|
||||||
|
'<p>This classic picture book features a repetitive format that lends itself to audience interaction. Illustrator Eric Carle submitted new, bolder artwork for the 25th anniversary edition.</p>'
|
||||||
|
=> 'This classic picture book features a repetitive format that lends itself to audience interaction.'
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach($cases as $orig => $match) {
|
foreach($cases as $orig => $match) {
|
||||||
|
Loading…
Reference in New Issue
Block a user