Permalink
Browse files

MINOR DataDifferenceTest should not test whitespace

  • Loading branch information...
1 parent 1d4ac68 commit 03abde46beab19ef773ee05926acd69326425502 @stojg stojg committed Feb 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/model/DataDifferencerTest.php
@@ -25,7 +25,7 @@ function testArrayValues() {
$obj1Diff = $differ->diffedData();
// TODO Using getter would split up field again, bug only caused by simulating
// 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() {
@@ -45,7 +45,7 @@ function testHasOnes() {
$obj1Diff = $differ->diffedData();
$this->assertContains($image1->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')));
}
}

0 comments on commit 03abde4

Please sign in to comment.