From 03abde46beab19ef773ee05926acd69326425502 Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Fri, 10 Feb 2012 23:26:46 +0100 Subject: [PATCH] MINOR DataDifferenceTest should not test whitespace --- tests/model/DataDifferencerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/model/DataDifferencerTest.php b/tests/model/DataDifferencerTest.php index 98a589310..c2cee4898 100644 --- a/tests/model/DataDifferencerTest.php +++ b/tests/model/DataDifferencerTest.php @@ -25,7 +25,7 @@ class DataDifferencerTest extends SapphireTest { $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('aa,b', $obj1Diff->getField('Choices')); + $this->assertContains('aa,b', str_replace(' ','',$obj1Diff->getField('Choices'))); } function testHasOnes() { @@ -45,7 +45,7 @@ class DataDifferencerTest extends SapphireTest { $obj1Diff = $differ->diffedData(); $this->assertContains($image1->Filename, $obj1Diff->getField('Image')); $this->assertContains($image2->Filename, $obj1Diff->getField('Image')); - $this->assertContains('obj2obj1', $obj1Diff->getField('HasOneRelationID')); + $this->assertContains('obj2obj1', str_replace(' ','',$obj1Diff->getField('HasOneRelationID'))); } }