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());
|
array_push($names, $field->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertContains('NameEmailURLComment', $names, 'The CompositeField name');
|
||||||
array(
|
$this->assertContains('ParentID', $names);
|
||||||
'NameEmailURLComment', // The CompositeField name?
|
$this->assertContains('ParentClassName', $names);
|
||||||
'ParentID',
|
$this->assertContains('ReturnURL', $names);
|
||||||
'ParentClassName',
|
$this->assertContains('ParentCommentID', $names);
|
||||||
'ReturnURL',
|
|
||||||
'ParentCommentID'
|
|
||||||
),
|
|
||||||
$names
|
|
||||||
);
|
|
||||||
|
|
||||||
// no parent, no reply form
|
// no parent, no reply form
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user