Set history controller priority in tests to ensure it is loaded

This commit is contained in:
Robbie Averill 2018-12-02 15:57:26 +00:00
parent 309dc97a32
commit 29a22bcb52
No known key found for this signature in database
GPG Key ID: 3C73047F9933CBEE

View File

@ -5,6 +5,7 @@ namespace SilverStripe\CMS\Tests\Controllers;
use Page;
use SilverStripe\CMS\Controllers\CMSPageHistoryController;
use SilverStripe\Control\Controller;
use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\Forms\FieldGroup;
@ -32,6 +33,9 @@ class CMSPageHistoryControllerTest extends FunctionalTest
CMSPageHistoryController::class
);
// Bump to avoid loading any customised controllers
Config::modify()->set(CMSPageHistoryController::class, 'url_priority', 50);
$this->loginWithPermission('ADMIN');
// creates a series of published, unpublished versions of a page