mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Set history controller priority in tests to ensure it is loaded
This commit is contained in:
parent
309dc97a32
commit
29a22bcb52
@ -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\Config\Config;
|
||||||
use SilverStripe\Core\Injector\Injector;
|
use SilverStripe\Core\Injector\Injector;
|
||||||
use SilverStripe\Dev\FunctionalTest;
|
use SilverStripe\Dev\FunctionalTest;
|
||||||
use SilverStripe\Forms\FieldGroup;
|
use SilverStripe\Forms\FieldGroup;
|
||||||
@ -32,6 +33,9 @@ class CMSPageHistoryControllerTest extends FunctionalTest
|
|||||||
CMSPageHistoryController::class
|
CMSPageHistoryController::class
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Bump to avoid loading any customised controllers
|
||||||
|
Config::modify()->set(CMSPageHistoryController::class, 'url_priority', 50);
|
||||||
|
|
||||||
$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…
Reference in New Issue
Block a user