silverstripe-cms/tests/php/Controllers/ContentControllerTest_PageController.php

24 lines
451 B
PHP
Raw Permalink Normal View History

<?php
2017-08-09 04:53:38 +02:00
namespace SilverStripe\CMS\Tests\Controllers;
2017-08-09 03:25:12 +02:00
use SilverStripe\CMS\Controllers\ContentController;
use SilverStripe\Dev\TestOnly;
2017-08-09 03:25:12 +02:00
class ContentControllerTest_PageController extends ContentController implements TestOnly
{
private static $allowed_actions = [
'second_index',
];
public function index()
{
return $this->Title;
}
public function second_index()
{
return $this->index();
}
}