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:
Will Rossiter 2010-06-04 05:32:54 +00:00 committed by Sam Minnee
parent 41ec792cb4
commit 93040d6781

View File

@ -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)
);
}