-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX CMSPageHistoryControllerTest now uses a stub controller to avoid …
…URL conflicts with versioned-admin
- Loading branch information
1 parent
32c0b57
commit c28f5ad
Showing
2 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/php/Controllers/CMSPageHistoryControllerTest/HistoryController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace SilverStripe\CMS\Tests\Controllers\CMSPageHistoryControllerTest; | ||
|
||
use SilverStripe\CMS\Controllers\CMSPageHistoryController; | ||
use SilverStripe\Dev\TestOnly; | ||
|
||
/** | ||
* Used to circumvent potential URL conflicts with the silverstripe/versioned-admin history viewer controller | ||
* when running unit tests on the legacy CMSPageHistoryController. | ||
*/ | ||
class HistoryController extends CMSPageHistoryController implements TestOnly | ||
{ | ||
private static $url_segment = 'pages/legacyhistory'; | ||
} |