Run add-namespace command

This commit is contained in:
Damian Mooyman 2017-08-09 13:25:12 +12:00
parent 6cb2077878
commit 9f268a18b5
71 changed files with 419 additions and 2 deletions

View File

@ -76,5 +76,75 @@ mappings:
URLSegmentField: SilverStripe\CMS\Forms\SiteTreeURLSegmentField
CMSPagesController_Tools_ss: SilverStripe\CMS\Controllers\CMSPagesController
LeftAndMain: SilverStripe\Admin\LeftAndMain
CMSBatchActionsTest: SilverStripe\CMS\Tests\CMSBatchActionsTest
CMSMainTest: SilverStripe\CMS\Tests\CMSMainTest
CMSMainTest_ClassA: SilverStripe\CMS\Tests\CMSMainTest_ClassA
CMSMainTest_ClassB: SilverStripe\CMS\Tests\CMSMainTest_ClassB
CMSMainTest_HiddenClass: SilverStripe\CMS\Tests\CMSMainTest_HiddenClass
CMSMainTest_NotRoot: SilverStripe\CMS\Tests\CMSMainTest_NotRoot
CMSPageHistoryControllerTest: SilverStripe\CMS\Tests\CMSPageHistoryControllerTest
CMSSiteTreeFilterTest: SilverStripe\CMS\Tests\CMSSiteTreeFilterTest
CMSTreeTest: SilverStripe\CMS\Tests\CMSTreeTest
ContentControllerPermissionsTest: SilverStripe\CMS\Tests\ContentControllerPermissionsTest
ContentControllerSearchExtensionTest: SilverStripe\CMS\Tests\ContentControllerSearchExtensionTest
ContentControllerTest: SilverStripe\CMS\Tests\ContentControllerTest
ContentControllerTest_Page: SilverStripe\CMS\Tests\ContentControllerTest_Page
ContentControllerTest_PageController: SilverStripe\CMS\Tests\ContentControllerTest_PageController
ContentControllerTestPage: SilverStripe\CMS\Tests\ContentControllerTestPage
ContentControllerTestPageController: SilverStripe\CMS\Tests\ContentControllerTestPageController
ContentControllerTestPageWithoutController: SilverStripe\CMS\Tests\ContentControllerTestPageWithoutController
ModelAsControllerTest: SilverStripe\CMS\Tests\ModelAsControllerTest
RootURLControllerTest: SilverStripe\CMS\Tests\RootURLControllerTest
SilverStripeNavigatorTest: SilverStripe\CMS\Tests\SilverStripeNavigatorTest
SilverStripeNavigatorTest_ProtectedTestItem: SilverStripe\CMS\Tests\SilverStripeNavigatorTest_ProtectedTestItem
SilverStripeNavigatorTest_TestItem: SilverStripe\CMS\Tests\SilverStripeNavigatorTest_TestItem
FileLinkTrackingTest: SilverStripe\CMS\Tests\FileLinkTrackingTest
RedirectorPageTest: SilverStripe\CMS\Tests\RedirectorPageTest
RedirectorPageTest_RedirectExtension: SilverStripe\CMS\Tests\RedirectorPageTest_RedirectExtension
SiteTreeActionsTest: SilverStripe\CMS\Tests\SiteTreeActionsTest
SiteTreeActionsTest_Page: SilverStripe\CMS\Tests\SiteTreeActionsTest_Page
SiteTreeBacklinksTest: SilverStripe\CMS\Tests\SiteTreeBacklinksTest
SiteTreeBacklinksTest_DOD: SilverStripe\CMS\Tests\SiteTreeBacklinksTest_DOD
SiteTreeBrokenLinksTest: SilverStripe\CMS\Tests\SiteTreeBrokenLinksTest
SiteTreeHTMLEditorFieldTest: SilverStripe\CMS\Tests\SiteTreeHTMLEditorFieldTest
SiteTreeLinkTrackingTest: SilverStripe\CMS\Tests\SiteTreeLinkTrackingTest
SiteTreePermissionsTest: SilverStripe\CMS\Tests\SiteTreePermissionsTest
SiteTreeTest: SilverStripe\CMS\Tests\SiteTreeTest
SiteTreeTest_AdminDenied: SilverStripe\CMS\Tests\SiteTreeTest_AdminDenied
SiteTreeTest_AdminDeniedExtension: SilverStripe\CMS\Tests\SiteTreeTest_AdminDeniedExtension
SiteTreeTest_ClassA: SilverStripe\CMS\Tests\SiteTreeTest_ClassA
SiteTreeTest_ClassB: SilverStripe\CMS\Tests\SiteTreeTest_ClassB
SiteTreeTest_ClassC: SilverStripe\CMS\Tests\SiteTreeTest_ClassC
SiteTreeTest_ClassCext: SilverStripe\CMS\Tests\SiteTreeTest_ClassCext
SiteTreeTest_ClassD: SilverStripe\CMS\Tests\SiteTreeTest_ClassD
SiteTreeTest_ClassE: SilverStripe\CMS\Tests\SiteTreeTest_ClassE
SiteTreeTest_Conflicted: SilverStripe\CMS\Tests\SiteTreeTest_Conflicted
SiteTreeTest_ConflictedController: SilverStripe\CMS\Tests\SiteTreeTest_ConflictedController
SiteTreeTest_DataObject: SilverStripe\CMS\Tests\SiteTreeTest_DataObject
SiteTreeTest_Extension: SilverStripe\CMS\Tests\SiteTreeTest_Extension
SiteTreeTest_ExtensionA: SilverStripe\CMS\Tests\SiteTreeTest_ExtensionA
SiteTreeTest_ExtensionB: SilverStripe\CMS\Tests\SiteTreeTest_ExtensionB
SiteTreeTest_LegacyControllerName: SilverStripe\CMS\Tests\SiteTreeTest_LegacyControllerName
SiteTreeTest_LegacyControllerName_Controller: SilverStripe\CMS\Tests\SiteTreeTest_LegacyControllerName_Controller
SiteTreeTest_NotRoot: SilverStripe\CMS\Tests\SiteTreeTest_NotRoot
SiteTreeTest_NullHtmlCleaner: SilverStripe\CMS\Tests\SiteTreeTest_NullHtmlCleaner
SiteTreeTest_PageNode: SilverStripe\CMS\Tests\SiteTreeTest_PageNode
SiteTreeTest_PageNodeController: SilverStripe\CMS\Tests\SiteTreeTest_PageNodeController
SiteTreeTest_StageStatusInherit: SilverStripe\CMS\Tests\SiteTreeTest_StageStatusInherit
VirtualPageTest: SilverStripe\CMS\Tests\VirtualPageTest
VirtualPageTest_ClassA: SilverStripe\CMS\Tests\VirtualPageTest_ClassA
VirtualPageTest_ClassAController: SilverStripe\CMS\Tests\VirtualPageTest_ClassAController
VirtualPageTest_ClassB: SilverStripe\CMS\Tests\VirtualPageTest_ClassB
VirtualPageTest_ClassC: SilverStripe\CMS\Tests\VirtualPageTest_ClassC
VirtualPageTest_NotRoot: SilverStripe\CMS\Tests\VirtualPageTest_NotRoot
VirtualPageTest_PageExtension: SilverStripe\CMS\Tests\VirtualPageTest_PageExtension
VirtualPageTest_PageWithAllowedChildren: SilverStripe\CMS\Tests\VirtualPageTest_PageWithAllowedChildren
VirtualPageTest_TestDBField: SilverStripe\CMS\Tests\VirtualPageTest_TestDBField
VirtualPageTest_VirtualPageSub: SilverStripe\CMS\Tests\VirtualPageTest_VirtualPageSub
CmsReportsTest: SilverStripe\CMS\Tests\CmsReportsTest
CMSMainSearchFormTest: SilverStripe\CMS\Tests\CMSMainSearchFormTest
ZZZSearchFormTest: SilverStripe\CMS\Tests\ZZZSearchFormTest
MigrateSiteTreeLinkingTaskTest: SilverStripe\CMS\Tests\MigrateSiteTreeLinkingTaskTest
RemoveOrphanedPagesTaskTest: SilverStripe\CMS\Tests\RemoveOrphanedPagesTaskTest
excludedPaths:
- '*/_config/legacy.yml'

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\BatchActions\CMSBatchAction_Archive;
use SilverStripe\Versioned\Versioned;
use SilverStripe\CMS\BatchActions\CMSBatchAction_Publish;
@ -8,6 +11,8 @@ use SilverStripe\CMS\BatchActions\CMSBatchAction_Restore;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Dev\SapphireTest;
/**
* Tests CMS Specific subclasses of {@see CMSBatchAction}
*/

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use Psr\SimpleCache\CacheInterface;
use SilverStripe\Admin\CMSBatchActionHandler;
use SilverStripe\CMS\Controllers\CMSMain;
@ -21,6 +24,8 @@ use SilverStripe\ORM\ValidationException;
use SilverStripe\Security\Security;
use SilverStripe\SiteConfig\SiteConfig;
use SilverStripe\Versioned\Versioned;
use Page;
/**
* @package cms

View File

@ -1,7 +1,12 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\ValidationException;
use Page;
class CMSMainTest_ClassA extends Page implements TestOnly
{

View File

@ -1,7 +1,12 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\ValidationException;
use Page;
class CMSMainTest_ClassB extends Page implements TestOnly
{

View File

@ -1,7 +1,12 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\HiddenClass;
use Page;
class CMSMainTest_HiddenClass extends Page implements TestOnly, HiddenClass
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class CMSMainTest_NotRoot extends Page implements TestOnly
{

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Control\Controller;
use SilverStripe\Forms\FieldGroup;
use SilverStripe\Forms\FieldList;
@ -9,6 +12,8 @@ use SilverStripe\Forms\TextField;
use SilverStripe\Versioned\Versioned;
use SilverStripe\CMS\Controllers\CMSPageHistoryController;
use SilverStripe\Dev\FunctionalTest;
use Page;
/**
* @package cms

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Versioned\Versioned;
use SilverStripe\CMS\Controllers\CMSSiteTreeFilter_Search;
@ -10,6 +13,8 @@ use SilverStripe\CMS\Controllers\CMSSiteTreeFilter_StatusRemovedFromDraftPages;
use SilverStripe\CMS\Controllers\CMSSiteTreeFilter_StatusDeletedPages;
use SilverStripe\Dev\SapphireTest;
class CMSSiteTreeFilterTest extends SapphireTest
{

View File

@ -1,9 +1,14 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\ORM\DataObject;
/**
* Tests for tree-operations refactored out of LeftAndMain
*/

View File

@ -1,9 +1,14 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Control\HTTPResponse_Exception;
use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\FunctionalTest;
use Page;
/**
* @package cms

View File

@ -1,11 +1,16 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Assets\File;
use SilverStripe\CMS\Controllers\ContentController;
use SilverStripe\CMS\Search\ContentControllerSearchExtension;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\ORM\Search\FulltextSearchable;
use SilverStripe\Versioned\Versioned;
use Page;
class ContentControllerSearchExtensionTest extends SapphireTest
{

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Controllers\ContentController;
use SilverStripe\CMS\Controllers\RootURLController;
use SilverStripe\CMS\Model\SiteTree;
@ -8,6 +11,8 @@ use SilverStripe\Control\HTTPResponse_Exception;
use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\Versioned\Versioned;
use Page;
/**
* @package cms

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class ContentControllerTestPage extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use PageController;
class ContentControllerTestPageController extends PageController implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class ContentControllerTestPageWithoutController extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class ContentControllerTest_Page extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use PageController;
class ContentControllerTest_PageController extends PageController implements TestOnly
{

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Versioned\Versioned;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\CMS\Controllers\OldPageRedirector;
@ -8,6 +11,8 @@ use SilverStripe\Core\Config\Config;
use SilverStripe\Control\Director;
use SilverStripe\Control\Controller;
use SilverStripe\Dev\FunctionalTest;
use Page;
/**
* @package cms

View File

@ -1,10 +1,15 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\CMS\Controllers\RootURLController;
use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\SapphireTest;
/**
* @package cms
* @subpackage tests

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Controllers\SilverStripeNavigatorItem_StageLink;
use SilverStripe\Security\Member;
use SilverStripe\Security\Permission;
@ -9,6 +12,8 @@ use SilverStripe\Dev\SapphireTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Security\Security;
/**
* @package cms
* @subpackage tests

View File

@ -1,9 +1,14 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Controllers\SilverStripeNavigatorItem;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Security\Permission;
use SilverStripe\Security\Security;
class SilverStripeNavigatorTest_ProtectedTestItem extends SilverStripeNavigatorItem implements TestOnly
{

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Controllers\SilverStripeNavigatorItem;
use SilverStripe\Dev\TestOnly;
class SilverStripeNavigatorTest_TestItem extends SilverStripeNavigatorItem implements TestOnly
{
public function getTitle()

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Assets\Folder;
use SilverStripe\Assets\Image;
use SilverStripe\Versioned\Versioned;
@ -9,6 +12,8 @@ use SilverStripe\Assets\File;
use SilverStripe\Assets\Filesystem;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\Assets\Tests\Storage\AssetStoreTest\TestAssetStore;
use Page;
/**
* Tests link tracking to files and images.

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\RedirectorPage;
use SilverStripe\CMS\Model\RedirectorPageController;
use SilverStripe\Control\Director;
@ -7,6 +10,8 @@ use SilverStripe\Dev\FunctionalTest;
use SilverStripe\Core\Extension;
use SilverStripe\Dev\TestOnly;
class RedirectorPageTest extends FunctionalTest
{
protected static $fixture_file = 'RedirectorPageTest.yml';

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Core\Extension;
use SilverStripe\Dev\TestOnly;
class RedirectorPageTest_RedirectExtension extends Extension implements TestOnly
{

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Security\Security;
use SilverStripe\Versioned\Versioned;
@ -8,6 +11,8 @@ use SilverStripe\Security\Member;
use SilverStripe\Security\Permission;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\Dev\TestOnly;
use Page;
/**
* Possible actions:

View File

@ -1,7 +1,12 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Security\Permission;
use Page;
class SiteTreeActionsTest_Page extends Page implements TestOnly
{

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Versioned\Versioned;
use SilverStripe\ORM\DataExtension;
@ -10,6 +13,8 @@ use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
use SilverStripe\Dev\TestOnly;
/**
* Tests {@see SiteTreeLinkTracking} broken links feature: LinkTracking
*/

View File

@ -1,10 +1,15 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
use SilverStripe\ORM\DataExtension;
class SiteTreeBacklinksTest_DOD extends DataExtension implements TestOnly
{
private static $db = array(

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Versioned\Versioned;
use SilverStripe\ORM\DataObject;
@ -9,6 +12,8 @@ use SilverStripe\CMS\Model\RedirectorPage;
use SilverStripe\Assets\File;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\Assets\Tests\Storage\AssetStoreTest\TestAssetStore;
use Page;
/**
* Tests {@see SiteTreeLinkTracking} broken links feature: LinkTracking

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Assets\File;
use SilverStripe\Assets\Filesystem;
@ -8,6 +11,8 @@ use SilverStripe\Dev\CSSContentParser;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\Assets\Tests\Storage\AssetStoreTest\TestAssetStore;
class SiteTreeHTMLEditorFieldTest extends FunctionalTest
{
protected static $fixture_file = 'SiteTreeHTMLEditorFieldTest.yml';

View File

@ -1,9 +1,14 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTreeLinkTracking_Parser;
use SilverStripe\Assets\File;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\View\Parsers\HTMLValue;
use Page;
class SiteTreeLinkTrackingTest extends SapphireTest
{

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Security\Group;
use SilverStripe\Security\Security;
use SilverStripe\SiteConfig\SiteConfig;
@ -10,6 +13,8 @@ use SilverStripe\Control\HTTPResponse_Exception;
use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\FunctionalTest;
/**
* @package cms
* @subpackage tests

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\RedirectorPage;
use SilverStripe\CMS\Model\VirtualPage;
use SilverStripe\Control\ContentNegotiator;
@ -28,6 +31,9 @@ use SilverStripe\Dev\TestOnly;
use SilverStripe\View\Parsers\HTMLCleaner;
use SilverStripe\View\Parsers\Diff;
use SilverStripe\View\Parsers\URLSegmentFilter;
use Page;
use ReflectionMethod;
/**
* @package cms

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class SiteTreeTest_AdminDenied extends Page implements TestOnly
{

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataExtension;
/**
* An extension that can even deny actions to admins
*/

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class SiteTreeTest_ClassA extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class SiteTreeTest_ClassB extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class SiteTreeTest_ClassC extends Page implements TestOnly
{

View File

@ -1,7 +1,12 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
class SiteTreeTest_ClassCext extends SiteTreeTest_ClassC implements TestOnly
{
// Override SiteTreeTest_ClassC definitions

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class SiteTreeTest_ClassD extends Page implements TestOnly
{

View File

@ -1,7 +1,12 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\HiddenClass;
use Page;
class SiteTreeTest_ClassE extends Page implements TestOnly, HiddenClass
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class SiteTreeTest_Conflicted extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use PageController;
class SiteTreeTest_ConflictedController extends PageController implements TestOnly
{

View File

@ -1,9 +1,14 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
/**
* Class SiteTreeTest_DataObject
*

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataExtension;
class SiteTreeTest_Extension extends DataExtension implements TestOnly
{
public function augmentValidURLSegment()

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTreeExtension;
use SilverStripe\Dev\TestOnly;
class SiteTreeTest_ExtensionA extends SiteTreeExtension implements TestOnly
{
public static $can_publish = true;

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTreeExtension;
use SilverStripe\Dev\TestOnly;
class SiteTreeTest_ExtensionB extends SiteTreeExtension implements TestOnly
{
public static $can_publish = true;

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
/**
* An empty SiteTree instance with a controller to test that legacy controller names can still be loaded

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use PageController;
class SiteTreeTest_LegacyControllerName_Controller extends PageController implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class SiteTreeTest_NotRoot extends Page implements TestOnly
{

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\View\Parsers\HTMLCleaner;
class SiteTreeTest_NullHtmlCleaner extends HTMLCleaner implements TestOnly
{
public function cleanHTML($html)

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class SiteTreeTest_PageNode extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use PageController;
class SiteTreeTest_PageNodeController extends PageController implements TestOnly
{

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Dev\TestOnly;
class SiteTreeTest_StageStatusInherit extends SiteTree implements TestOnly
{
public function getStatusFlags($cached = true)

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use Page;
use SilverStripe\CMS\Controllers\ModelAsController;
use SilverStripe\CMS\Model\RedirectorPage;
use SilverStripe\CMS\Model\SiteTree;
@ -7,9 +10,7 @@ use SilverStripe\CMS\Model\VirtualPage;
use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\ORM\ValidationException;
use SilverStripe\Security\Member;
use SilverStripe\Versioned\Versioned;
class VirtualPageTest extends FunctionalTest

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class VirtualPageTest_ClassA extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use PageController;
class VirtualPageTest_ClassAController extends PageController implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class VirtualPageTest_ClassB extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class VirtualPageTest_ClassC extends Page implements TestOnly
{

View File

@ -1,6 +1,11 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class VirtualPageTest_NotRoot extends Page implements TestOnly
{

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataExtension;
class VirtualPageTest_PageExtension extends DataExtension implements TestOnly
{
private static $db = array(

View File

@ -1,7 +1,12 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\VirtualPage;
use SilverStripe\Dev\TestOnly;
use Page;
class VirtualPageTest_PageWithAllowedChildren extends Page implements TestOnly
{

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\FieldType\DBVarchar;
class VirtualPageTest_TestDBField extends DBVarchar implements TestOnly
{
public function forTemplate()

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\VirtualPage;
use SilverStripe\Dev\TestOnly;
class VirtualPageTest_VirtualPageSub extends VirtualPage implements TestOnly
{
private static $db = array(

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\ORM\DB;
use SilverStripe\ORM\FieldType\DBDatetime;
@ -13,6 +16,8 @@ use SilverStripe\CMS\Reports\BrokenRedirectorPagesReport;
use SilverStripe\Reports\Report;
use SilverStripe\Assets\File;
use SilverStripe\Dev\SapphireTest;
use Page;
/**
* @package cms

View File

@ -1,7 +1,12 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\FunctionalTest;
class CMSMainSearchFormTest extends FunctionalTest
{

View File

@ -1,5 +1,8 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Assets\File;
use SilverStripe\CMS\Controllers\ModelAsController;
use SilverStripe\CMS\Model\SiteTree;
@ -16,6 +19,8 @@ use SilverStripe\ORM\Search\FulltextSearchable;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\Security\Member;
/**
* @package cms
* @subpackage testing

View File

@ -1,9 +1,14 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\ORM\DataObject;
use SilverStripe\CMS\Tasks\MigrateSiteTreeLinkingTask;
use SilverStripe\Dev\SapphireTest;
/**
* @package cms
* @subpackage tests

View File

@ -1,8 +1,13 @@
<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Dev\FunctionalTest;
/**
* <h2>Fixture tree</h2>
* <code>