mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
MINOR Update CMS test to explicitetly register the CMSPageHistoryController (#2300)
This commit is contained in:
parent
2773e9c075
commit
9abd721a56
@ -5,6 +5,7 @@ namespace SilverStripe\CMS\Tests\Controllers;
|
|||||||
use Page;
|
use Page;
|
||||||
use SilverStripe\CMS\Controllers\CMSPageHistoryController;
|
use SilverStripe\CMS\Controllers\CMSPageHistoryController;
|
||||||
use SilverStripe\Control\Controller;
|
use SilverStripe\Control\Controller;
|
||||||
|
use SilverStripe\Core\Injector\Injector;
|
||||||
use SilverStripe\Dev\FunctionalTest;
|
use SilverStripe\Dev\FunctionalTest;
|
||||||
use SilverStripe\Forms\FieldGroup;
|
use SilverStripe\Forms\FieldGroup;
|
||||||
use SilverStripe\Forms\FieldList;
|
use SilverStripe\Forms\FieldList;
|
||||||
@ -26,6 +27,11 @@ class CMSPageHistoryControllerTest extends FunctionalTest
|
|||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
Injector::inst()->registerService(
|
||||||
|
new CMSPageHistoryController(),
|
||||||
|
CMSPageHistoryController::class
|
||||||
|
);
|
||||||
|
|
||||||
$this->loginWithPermission('ADMIN');
|
$this->loginWithPermission('ADMIN');
|
||||||
|
|
||||||
// creates a series of published, unpublished versions of a page
|
// creates a series of published, unpublished versions of a page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user