mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: updated tests for Text
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@106205 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
41ec792cb4
commit
93040d6781
@ -112,14 +112,14 @@ class TextTest extends SapphireTest {
|
||||
$textObj = DBField::create('Text', $testString1, 'Text');
|
||||
|
||||
$this->assertEquals(
|
||||
'text. It is a <span class="highlight">test</span>',
|
||||
'... text. It is a <span class="highlight">test</span>...',
|
||||
$textObj->ContextSummary(20, $testKeywords1)
|
||||
);
|
||||
|
||||
|
||||
$textObj->setValue($testString2);
|
||||
|
||||
$this->assertEquals(
|
||||
'This is <span class="highlight">some</span> <span class="highlight">test</span> text. <span class="highlight">test</span> <span class="highlight">test</span> what if you have',
|
||||
'This is <span class="highlight">some</span> <span class="highlight">test</span> text. <span class="highlight">test</span> <span class="highlight">test</span> what if you have...',
|
||||
$textObj->ContextSummary(50, $testKeywords2)
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user