mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Fixed test fixture paths and @package from 'sapphire' to 'cms'
This commit is contained in:
parent
426f7e734f
commit
f1e1cbe09b
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* This interface lets us set up objects that will tell us what the current page is.
|
* This interface lets us set up objects that will tell us what the current page is.
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage model
|
* @subpackage model
|
||||||
*/
|
*/
|
||||||
interface CurrentPageIdentifier {
|
interface CurrentPageIdentifier {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage filesystem
|
* @subpackage filesystem
|
||||||
*/
|
*/
|
||||||
class Folder_UnusedAssetsField extends CompositeField {
|
class Folder_UnusedAssetsField extends CompositeField {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Base class for HTML cleaning classes.
|
* Base class for HTML cleaning classes.
|
||||||
*
|
*
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage misc
|
* @subpackage misc
|
||||||
*/
|
*/
|
||||||
abstract class HTMLCleaner extends Object {
|
abstract class HTMLCleaner extends Object {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* You can use forms in widgets by implementing a {@link Widget_Controller}.
|
* You can use forms in widgets by implementing a {@link Widget_Controller}.
|
||||||
* See {@link Widget_Controller} for more information.
|
* See {@link Widget_Controller} for more information.
|
||||||
*
|
*
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage widgets
|
* @subpackage widgets
|
||||||
*/
|
*/
|
||||||
class Widget extends DataObject {
|
class Widget extends DataObject {
|
||||||
@ -140,7 +140,7 @@ class Widget extends DataObject {
|
|||||||
* because the logic is implemented in {@link ContentController->handleWidget()}.
|
* because the logic is implemented in {@link ContentController->handleWidget()}.
|
||||||
* Copy this logic and the URL rules to enable it for other controllers.
|
* Copy this logic and the URL rules to enable it for other controllers.
|
||||||
*
|
*
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage widgets
|
* @subpackage widgets
|
||||||
*/
|
*/
|
||||||
class Widget_Controller extends Controller {
|
class Widget_Controller extends Controller {
|
||||||
@ -222,7 +222,7 @@ class Widget_Controller extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage widgets
|
* @subpackage widgets
|
||||||
*/
|
*/
|
||||||
class Widget_TreeDropdownField extends TreeDropdownField {
|
class Widget_TreeDropdownField extends TreeDropdownField {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Represents a set of widgets shown on a page.
|
* Represents a set of widgets shown on a page.
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage widgets
|
* @subpackage widgets
|
||||||
*/
|
*/
|
||||||
class WidgetArea extends DataObject {
|
class WidgetArea extends DataObject {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class ContentControllerPermissionTest extends FunctionalTest {
|
class ContentControllerPermissionTest extends FunctionalTest {
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class ContentControllerTest extends FunctionalTest {
|
class ContentControllerTest extends FunctionalTest {
|
||||||
|
|
||||||
public static $fixture_file = 'sapphire/tests/control/ContentControllerTest.yml';
|
public static $fixture_file = 'cms/tests/ContentControllerTest.yml';
|
||||||
|
|
||||||
public static $use_draft_site = true;
|
public static $use_draft_site = true;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
class ErrorPageTest extends FunctionalTest {
|
class ErrorPageTest extends FunctionalTest {
|
||||||
|
|
||||||
static $fixture_file = 'sapphire/tests/ErrorPageTest.yml';
|
static $fixture_file = 'cms/tests/ErrorPageTest.yml';
|
||||||
|
|
||||||
protected $orig = array();
|
protected $orig = array();
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class MigrateSiteTreeLinkingTaskTest extends SapphireTest {
|
class MigrateSiteTreeLinkingTaskTest extends SapphireTest {
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class ModelAsControllerTest extends FunctionalTest {
|
class ModelAsControllerTest extends FunctionalTest {
|
||||||
|
|
||||||
protected $usesDatabase = true;
|
protected $usesDatabase = true;
|
||||||
|
|
||||||
static $fixture_file = 'sapphire/tests/ModelAsControllerTest.yml';
|
static $fixture_file = 'cms/tests/ModelAsControllerTest.yml';
|
||||||
|
|
||||||
protected $autoFollowRedirection = false;
|
protected $autoFollowRedirection = false;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class RedirectorPageTest extends FunctionalTest {
|
class RedirectorPageTest extends FunctionalTest {
|
||||||
static $fixture_file = 'sapphire/tests/RedirectorPageTest.yml';
|
static $fixture_file = 'cms/tests/RedirectorPageTest.yml';
|
||||||
static $use_draft_site = true;
|
static $use_draft_site = true;
|
||||||
|
|
||||||
function testGoodRedirectors() {
|
function testGoodRedirectors() {
|
||||||
|
@ -27,12 +27,12 @@
|
|||||||
*
|
*
|
||||||
* @author Ingo Schommer (<firstname>@silverstripe.com), SilverStripe Ltd.
|
* @author Ingo Schommer (<firstname>@silverstripe.com), SilverStripe Ltd.
|
||||||
*
|
*
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class RemoveOrphanedPagesTaskTest extends FunctionalTest {
|
class RemoveOrphanedPagesTaskTest extends FunctionalTest {
|
||||||
|
|
||||||
static $fixture_file = 'sapphire/tests/tasks/RemoveOrphanedPagesTaskTest.yml';
|
static $fixture_file = 'cms/tests/RemoveOrphanedPagesTaskTest.yml';
|
||||||
|
|
||||||
static $use_draft_site = false;
|
static $use_draft_site = false;
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class RootURLControllerTest extends SapphireTest {
|
class RootURLControllerTest extends SapphireTest {
|
||||||
static $fixture_file = 'sapphire/tests/control/RootURLControllerTest.yml';
|
static $fixture_file = 'cms/tests/RootURLControllerTest.yml';
|
||||||
|
|
||||||
function testHomepageForDomain() {
|
function testHomepageForDomain() {
|
||||||
$originalHost = $_SERVER['HTTP_HOST'];
|
$originalHost = $_SERVER['HTTP_HOST'];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage testing
|
* @subpackage testing
|
||||||
*
|
*
|
||||||
* @todo Fix unpublished pages check in testPublishedPagesMatchedByTitle()
|
* @todo Fix unpublished pages check in testPublishedPagesMatchedByTitle()
|
||||||
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
class SearchFormTest extends FunctionalTest {
|
class SearchFormTest extends FunctionalTest {
|
||||||
|
|
||||||
static $fixture_file = 'sapphire/tests/search/SearchFormTest.yml';
|
static $fixture_file = 'cms/tests/SearchFormTest.yml';
|
||||||
|
|
||||||
protected $mockController;
|
protected $mockController;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*
|
*
|
||||||
* Note: Most of the permission-related SiteConfig tests are located in
|
* Note: Most of the permission-related SiteConfig tests are located in
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* - action_rollback
|
* - action_rollback
|
||||||
* - action_revert
|
* - action_revert
|
||||||
*
|
*
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class SiteTreeActionsTest extends FunctionalTest {
|
class SiteTreeActionsTest extends FunctionalTest {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class SiteTreeBrokenLinksTest extends SapphireTest {
|
class SiteTreeBrokenLinksTest extends SapphireTest {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*
|
*
|
||||||
* @todo Test canAddChildren()
|
* @todo Test canAddChildren()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class SiteTreeTest extends SapphireTest {
|
class SiteTreeTest extends SapphireTest {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class VirtualPageTest extends SapphireTest {
|
class VirtualPageTest extends SapphireTest {
|
||||||
static $fixture_file = 'sapphire/tests/model/VirtualPageTest.yml';
|
static $fixture_file = 'cms/tests/VirtualPageTest.yml';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that, after you update the source page of a virtual page, all the virtual pages
|
* Test that, after you update the source page of a virtual page, all the virtual pages
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class WidgetControllerTest extends FunctionalTest {
|
class WidgetControllerTest extends FunctionalTest {
|
||||||
static $fixture_file = 'sapphire/tests/widgets/WidgetControllerTest.yml';
|
static $fixture_file = 'cms/tests/WidgetControllerTest.yml';
|
||||||
|
|
||||||
protected $extraDataObjects = array(
|
protected $extraDataObjects = array(
|
||||||
'WidgetControllerTestPage',
|
'WidgetControllerTestPage',
|
||||||
@ -50,7 +50,7 @@ class WidgetControllerTest extends FunctionalTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class WidgetControllerTest_Widget extends Widget implements TestOnly {
|
class WidgetControllerTest_Widget extends Widget implements TestOnly {
|
||||||
@ -60,7 +60,7 @@ class WidgetControllerTest_Widget extends Widget implements TestOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class WidgetControllerTest_Widget_Controller extends Widget_Controller implements TestOnly {
|
class WidgetControllerTest_Widget_Controller extends Widget_Controller implements TestOnly {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class WidgetControllerTestPage extends Page implements TestOnly {
|
class WidgetControllerTestPage extends Page implements TestOnly {
|
||||||
@ -10,7 +10,7 @@ class WidgetControllerTestPage extends Page implements TestOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @package sapphire
|
* @package cms
|
||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class WidgetControllerTestPage_Controller extends Page_Controller implements TestOnly {
|
class WidgetControllerTestPage_Controller extends Page_Controller implements TestOnly {
|
||||||
|
Loading…
Reference in New Issue
Block a user