From 614b525c04734db46f16f587c29f23b1d25a6238 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 29 May 2018 18:56:27 +1200 Subject: [PATCH] FIX Loosen assertions in case extension provide extra columns in global state --- tests/CommentsTest.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tests/CommentsTest.php b/tests/CommentsTest.php index 2df8d6e..6975837 100644 --- a/tests/CommentsTest.php +++ b/tests/CommentsTest.php @@ -1206,16 +1206,11 @@ class CommentsTest extends FunctionalTest array_push($names, $field->getName()); } - $this->assertEquals( - array( - 'NameEmailURLComment', // The CompositeField name? - 'ParentID', - 'ParentClassName', - 'ReturnURL', - 'ParentCommentID' - ), - $names - ); + $this->assertContains('NameEmailURLComment', $names, 'The CompositeField name'); + $this->assertContains('ParentID', $names); + $this->assertContains('ParentClassName', $names); + $this->assertContains('ReturnURL', $names); + $this->assertContains('ParentCommentID', $names); // no parent, no reply form