mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
FIX Loosen assertions in case extension provide extra columns in global state
This commit is contained in:
parent
02db1cc86e
commit
614b525c04
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user