mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Relative $fixture_file links in cms/tests to facilitate moving files
This commit is contained in:
parent
60abe5fb9f
commit
f547da23a3
@ -4,7 +4,7 @@
|
|||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class CMSMainTest extends FunctionalTest {
|
class CMSMainTest extends FunctionalTest {
|
||||||
static $fixture_file = 'cms/tests/CMSMainTest.yml';
|
static $fixture_file = 'CMSMainTest.yml';
|
||||||
|
|
||||||
protected $autoFollowRedirection = false;
|
protected $autoFollowRedirection = false;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
class CMSSiteTreeFilterTest extends SapphireTest {
|
class CMSSiteTreeFilterTest extends SapphireTest {
|
||||||
|
|
||||||
static $fixture_file = 'cms/tests/CMSSiteTreeFilterTest.yml';
|
static $fixture_file = 'CMSSiteTreeFilterTest.yml';
|
||||||
|
|
||||||
function testSearchFilterEmpty() {
|
function testSearchFilterEmpty() {
|
||||||
$page1 = $this->objFromFixture('Page', 'page1');
|
$page1 = $this->objFromFixture('Page', 'page1');
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
class ContentControllerTest extends FunctionalTest {
|
class ContentControllerTest extends FunctionalTest {
|
||||||
|
|
||||||
public static $fixture_file = 'cms/tests/ContentControllerTest.yml';
|
public static $fixture_file = 'ContentControllerTest.yml';
|
||||||
|
|
||||||
public static $use_draft_site = true;
|
public static $use_draft_site = true;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ class ModelAsControllerTest extends FunctionalTest {
|
|||||||
|
|
||||||
protected $usesDatabase = true;
|
protected $usesDatabase = true;
|
||||||
|
|
||||||
static $fixture_file = 'cms/tests/ModelAsControllerTest.yml';
|
static $fixture_file = 'ModelAsControllerTest.yml';
|
||||||
|
|
||||||
protected $autoFollowRedirection = false;
|
protected $autoFollowRedirection = false;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class RootURLControllerTest extends SapphireTest {
|
class RootURLControllerTest extends SapphireTest {
|
||||||
static $fixture_file = 'cms/tests/RootURLControllerTest.yml';
|
static $fixture_file = 'RootURLControllerTest.yml';
|
||||||
|
|
||||||
function testHomepageForDomain() {
|
function testHomepageForDomain() {
|
||||||
$originalHost = $_SERVER['HTTP_HOST'];
|
$originalHost = $_SERVER['HTTP_HOST'];
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
class ErrorPageTest extends FunctionalTest {
|
class ErrorPageTest extends FunctionalTest {
|
||||||
|
|
||||||
static $fixture_file = 'cms/tests/ErrorPageTest.yml';
|
static $fixture_file = 'ErrorPageTest.yml';
|
||||||
|
|
||||||
protected $orig = array();
|
protected $orig = array();
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Tests link tracking to files and images.
|
* Tests link tracking to files and images.
|
||||||
*/
|
*/
|
||||||
class FileLinkTrackingTest extends SapphireTest {
|
class FileLinkTrackingTest extends SapphireTest {
|
||||||
static $fixture_file = "cms/tests/FileLinkTrackingTest.yml";
|
static $fixture_file = "FileLinkTrackingTest.yml";
|
||||||
|
|
||||||
function setUp() {
|
function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class RedirectorPageTest extends FunctionalTest {
|
class RedirectorPageTest extends FunctionalTest {
|
||||||
static $fixture_file = 'cms/tests/RedirectorPageTest.yml';
|
static $fixture_file = 'RedirectorPageTest.yml';
|
||||||
static $use_draft_site = true;
|
static $use_draft_site = true;
|
||||||
|
|
||||||
function testGoodRedirectors() {
|
function testGoodRedirectors() {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
class SiteTreeActionsTest extends FunctionalTest {
|
class SiteTreeActionsTest extends FunctionalTest {
|
||||||
|
|
||||||
static $fixture_file = 'cms/tests/SiteTreeActionsTest.yml';
|
static $fixture_file = 'SiteTreeActionsTest.yml';
|
||||||
|
|
||||||
static function set_up_once() {
|
static function set_up_once() {
|
||||||
SiteTreeTest::set_up_once();
|
SiteTreeTest::set_up_once();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class SiteTreeBacklinksTest extends SapphireTest {
|
class SiteTreeBacklinksTest extends SapphireTest {
|
||||||
static $fixture_file = "cms/tests/SiteTreeBacklinksTest.yml";
|
static $fixture_file = "SiteTreeBacklinksTest.yml";
|
||||||
|
|
||||||
protected $requiredExtensions = array(
|
protected $requiredExtensions = array(
|
||||||
'SiteTree' => array('SiteTreeBacklinksTest_DOD'),
|
'SiteTree' => array('SiteTreeBacklinksTest_DOD'),
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class SiteTreeBrokenLinksTest extends SapphireTest {
|
class SiteTreeBrokenLinksTest extends SapphireTest {
|
||||||
static $fixture_file = 'cms/tests/SiteTreeBrokenLinksTest.yml';
|
static $fixture_file = 'SiteTreeBrokenLinksTest.yml';
|
||||||
|
|
||||||
static function set_up_once() {
|
static function set_up_once() {
|
||||||
SiteTreeTest::set_up_once();
|
SiteTreeTest::set_up_once();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class SiteTreeHtmlEditorFieldTest extends FunctionalTest {
|
class SiteTreeHtmlEditorFieldTest extends FunctionalTest {
|
||||||
public static $fixture_file = 'cms/tests/SiteTreeHtmlEditorFieldTest.yml';
|
public static $fixture_file = 'SiteTreeHtmlEditorFieldTest.yml';
|
||||||
|
|
||||||
public static $use_draft_site = true;
|
public static $use_draft_site = true;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* @todo Test canCreate()
|
* @todo Test canCreate()
|
||||||
*/
|
*/
|
||||||
class SiteTreePermissionsTest extends FunctionalTest {
|
class SiteTreePermissionsTest extends FunctionalTest {
|
||||||
static $fixture_file = "cms/tests/SiteTreePermissionsTest.yml";
|
static $fixture_file = "SiteTreePermissionsTest.yml";
|
||||||
|
|
||||||
protected $illegalExtensions = array(
|
protected $illegalExtensions = array(
|
||||||
'SiteTree' => array('SiteTreeSubsites')
|
'SiteTree' => array('SiteTreeSubsites')
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class SiteTreeTest extends SapphireTest {
|
class SiteTreeTest extends SapphireTest {
|
||||||
static $fixture_file = 'cms/tests/SiteTreeTest.yml';
|
static $fixture_file = 'SiteTreeTest.yml';
|
||||||
|
|
||||||
protected $illegalExtensions = array(
|
protected $illegalExtensions = array(
|
||||||
'SiteTree' => array('SiteTreeSubsites')
|
'SiteTree' => array('SiteTreeSubsites')
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class VirtualPageTest extends SapphireTest {
|
class VirtualPageTest extends SapphireTest {
|
||||||
static $fixture_file = 'cms/tests/VirtualPageTest.yml';
|
static $fixture_file = '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
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
class SideReportTest extends SapphireTest {
|
class SideReportTest extends SapphireTest {
|
||||||
static $fixture_file = 'cms/tests/SideReportTest.yml';
|
|
||||||
|
static $fixture_file = 'SideReportTest.yml';
|
||||||
|
|
||||||
static $daysAgo = 14;
|
static $daysAgo = 14;
|
||||||
|
|
||||||
function setUp() {
|
function setUp() {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
class CMSMainSearchTreeFormTest extends FunctionalTest {
|
class CMSMainSearchTreeFormTest extends FunctionalTest {
|
||||||
|
|
||||||
static $fixture_file = 'cms/tests/CMSMainTest.yml';
|
static $fixture_file = '../controller/CMSMainTest.yml';
|
||||||
|
|
||||||
protected $autoFollowRedirection = false;
|
protected $autoFollowRedirection = false;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
class SearchFormTest extends FunctionalTest {
|
class SearchFormTest extends FunctionalTest {
|
||||||
|
|
||||||
static $fixture_file = 'cms/tests/SearchFormTest.yml';
|
static $fixture_file = 'SearchFormTest.yml';
|
||||||
|
|
||||||
protected $mockController;
|
protected $mockController;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
class MigrateSiteTreeLinkingTaskTest extends SapphireTest {
|
class MigrateSiteTreeLinkingTaskTest extends SapphireTest {
|
||||||
|
|
||||||
public static $fixture_file = 'cms/tests/MigrateSiteTreeLinkingTaskTest.yml';
|
public static $fixture_file = 'MigrateSiteTreeLinkingTaskTest.yml';
|
||||||
|
|
||||||
public static $use_draft_site = true;
|
public static $use_draft_site = true;
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
*/
|
*/
|
||||||
class RemoveOrphanedPagesTaskTest extends FunctionalTest {
|
class RemoveOrphanedPagesTaskTest extends FunctionalTest {
|
||||||
|
|
||||||
static $fixture_file = 'cms/tests/RemoveOrphanedPagesTaskTest.yml';
|
static $fixture_file = 'RemoveOrphanedPagesTaskTest.yml';
|
||||||
|
|
||||||
static $use_draft_site = false;
|
static $use_draft_site = false;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* @subpackage tests
|
* @subpackage tests
|
||||||
*/
|
*/
|
||||||
class WidgetControllerTest extends FunctionalTest {
|
class WidgetControllerTest extends FunctionalTest {
|
||||||
static $fixture_file = 'cms/tests/WidgetControllerTest.yml';
|
static $fixture_file = 'WidgetControllerTest.yml';
|
||||||
|
|
||||||
protected $extraDataObjects = array(
|
protected $extraDataObjects = array(
|
||||||
'WidgetControllerTestPage',
|
'WidgetControllerTestPage',
|
||||||
|
Loading…
Reference in New Issue
Block a user