mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
ab3f35257b
* Remove CommentList and replace with a polymorphic has_one relationship * Tweaks for unit tests. Add tests for encode/decodeClassName.
20 lines
406 B
PHP
20 lines
406 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Comments\Tests\Stubs;
|
|
|
|
use SilverStripe\Comments\Tests\Stubs\CommentableItem;
|
|
use SilverStripe\Control\Controller;
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
/**
|
|
* @package comments
|
|
* @subpackage tests
|
|
*/
|
|
class CommentableItemController extends Controller implements TestOnly
|
|
{
|
|
public function index()
|
|
{
|
|
return CommentableItem::get()->first()->CommentsForm();
|
|
}
|
|
}
|