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}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
protected $extraDataObjects = array(
|
protected static $extra_dataobjects = [
|
||||||
CommentableItem::class
|
CommentableItem::class
|
||||||
);
|
];
|
||||||
|
|
||||||
protected $securityEnabled;
|
protected $securityEnabled;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class CommentsExtensionTest extends SapphireTest
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
protected $extraDataObjects = array(
|
protected static $extra_dataobjects = array(
|
||||||
CommentableItem::class,
|
CommentableItem::class,
|
||||||
CommentableItemEnabled::class,
|
CommentableItemEnabled::class,
|
||||||
CommentableItemDisabled::class
|
CommentableItemDisabled::class
|
||||||
|
@ -26,7 +26,7 @@ class CommentsTest extends FunctionalTest
|
|||||||
{
|
{
|
||||||
protected static $fixture_file = 'comments/tests/CommentsTest.yml';
|
protected static $fixture_file = 'comments/tests/CommentsTest.yml';
|
||||||
|
|
||||||
protected $extraDataObjects = array(
|
protected static $extra_dataobjects = array(
|
||||||
CommentableItem::class,
|
CommentableItem::class,
|
||||||
CommentableItemEnabled::class,
|
CommentableItemEnabled::class,
|
||||||
CommentableItemDisabled::class
|
CommentableItemDisabled::class
|
||||||
|
@ -23,6 +23,8 @@ class CommentableItem extends DataObject implements TestOnly
|
|||||||
CommentsExtension::class
|
CommentsExtension::class
|
||||||
);
|
);
|
||||||
|
|
||||||
|
private static $table_name = 'CommentableItem';
|
||||||
|
|
||||||
public function RelativeLink()
|
public function RelativeLink()
|
||||||
{
|
{
|
||||||
return 'CommentableItemController';
|
return 'CommentableItemController';
|
||||||
|
Loading…
Reference in New Issue
Block a user