FIX Loosen assertions in case extension provide extra columns in global state

This commit is contained in:
Robbie Averill 2018-05-29 18:56:27 +12:00
parent 02db1cc86e
commit 614b525c04
No known key found for this signature in database
GPG Key ID: 3C73047F9933CBEE

View File

@ -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