From 29a22bcb52d25e349e47afd18715cb00e57657d8 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Sun, 2 Dec 2018 15:57:26 +0000 Subject: [PATCH] Set history controller priority in tests to ensure it is loaded --- tests/php/Controllers/CMSPageHistoryControllerTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/php/Controllers/CMSPageHistoryControllerTest.php b/tests/php/Controllers/CMSPageHistoryControllerTest.php index e857e23d..e8c5368f 100755 --- a/tests/php/Controllers/CMSPageHistoryControllerTest.php +++ b/tests/php/Controllers/CMSPageHistoryControllerTest.php @@ -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