mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #187 from silverstripe-scienceninjas/story/datadifferencetest-fix
MINOR DataDifferenceTest should not test whitespace
This commit is contained in:
commit
91b0c7b3ba
@ -25,7 +25,7 @@ class DataDifferencerTest extends SapphireTest {
|
|||||||
$obj1Diff = $differ->diffedData();
|
$obj1Diff = $differ->diffedData();
|
||||||
// TODO Using getter would split up field again, bug only caused by simulating
|
// TODO Using getter would split up field again, bug only caused by simulating
|
||||||
// an array-based value in the first place.
|
// an array-based value in the first place.
|
||||||
$this->assertContains('<ins>a</ins><del>a,b</del>', $obj1Diff->getField('Choices'));
|
$this->assertContains('<ins>a</ins><del>a,b</del>', str_replace(' ','',$obj1Diff->getField('Choices')));
|
||||||
}
|
}
|
||||||
|
|
||||||
function testHasOnes() {
|
function testHasOnes() {
|
||||||
@ -45,7 +45,7 @@ class DataDifferencerTest extends SapphireTest {
|
|||||||
$obj1Diff = $differ->diffedData();
|
$obj1Diff = $differ->diffedData();
|
||||||
$this->assertContains($image1->Filename, $obj1Diff->getField('Image'));
|
$this->assertContains($image1->Filename, $obj1Diff->getField('Image'));
|
||||||
$this->assertContains($image2->Filename, $obj1Diff->getField('Image'));
|
$this->assertContains($image2->Filename, $obj1Diff->getField('Image'));
|
||||||
$this->assertContains('<ins>obj2</ins><del>obj1</del>', $obj1Diff->getField('HasOneRelationID'));
|
$this->assertContains('<ins>obj2</ins><del>obj1</del>', str_replace(' ','',$obj1Diff->getField('HasOneRelationID')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user