mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Correct extra dataobjects array name
This commit is contained in:
parent
73a981456f
commit
7fff17b317
@ -29,9 +29,9 @@ class CommentingControllerTest extends FunctionalTest
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected $extraDataObjects = array(
|
||||
protected static $extra_dataobjects = [
|
||||
CommentableItem::class
|
||||
);
|
||||
];
|
||||
|
||||
protected $securityEnabled;
|
||||
|
||||
|
@ -23,7 +23,7 @@ class CommentsExtensionTest extends SapphireTest
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected $extraDataObjects = array(
|
||||
protected static $extra_dataobjects = array(
|
||||
CommentableItem::class,
|
||||
CommentableItemEnabled::class,
|
||||
CommentableItemDisabled::class
|
||||
|
@ -26,7 +26,7 @@ class CommentsTest extends FunctionalTest
|
||||
{
|
||||
protected static $fixture_file = 'comments/tests/CommentsTest.yml';
|
||||
|
||||
protected $extraDataObjects = array(
|
||||
protected static $extra_dataobjects = array(
|
||||
CommentableItem::class,
|
||||
CommentableItemEnabled::class,
|
||||
CommentableItemDisabled::class
|
||||
|
@ -23,6 +23,8 @@ class CommentableItem extends DataObject implements TestOnly
|
||||
CommentsExtension::class
|
||||
);
|
||||
|
||||
private static $table_name = 'CommentableItem';
|
||||
|
||||
public function RelativeLink()
|
||||
{
|
||||
return 'CommentableItemController';
|
||||
|
Loading…
Reference in New Issue
Block a user