Correct extra dataobjects array name

This commit is contained in:
Will Rossiter 2017-09-14 10:28:29 +12:00
parent 73a981456f
commit 7fff17b317
4 changed files with 6 additions and 4 deletions

View File

@ -29,9 +29,9 @@ class CommentingControllerTest extends FunctionalTest
/**
* {@inheritDoc}
*/
protected $extraDataObjects = array(
protected static $extra_dataobjects = [
CommentableItem::class
);
];
protected $securityEnabled;

View File

@ -23,7 +23,7 @@ class CommentsExtensionTest extends SapphireTest
/**
* {@inheritDoc}
*/
protected $extraDataObjects = array(
protected static $extra_dataobjects = array(
CommentableItem::class,
CommentableItemEnabled::class,
CommentableItemDisabled::class

View File

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

View File

@ -23,6 +23,8 @@ class CommentableItem extends DataObject implements TestOnly
CommentsExtension::class
);
private static $table_name = 'CommentableItem';
public function RelativeLink()
{
return 'CommentableItemController';