BUGFIX: updated tests for Text (from r106205)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112527 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 03:00:12 +00:00
parent e36247c1ed
commit 197cdb0f64

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