MINOR Relative $fixture_file links in cms/tests to facilitate moving files

This commit is contained in:
Ingo Schommer 2011-03-30 20:04:31 +13:00
parent 60abe5fb9f
commit f547da23a3
21 changed files with 23 additions and 21 deletions

View File

@ -4,7 +4,7 @@
* @subpackage tests
*/
class CMSMainTest extends FunctionalTest {
static $fixture_file = 'cms/tests/CMSMainTest.yml';
static $fixture_file = 'CMSMainTest.yml';
protected $autoFollowRedirection = false;

View File

@ -1,7 +1,7 @@
<?php
class CMSSiteTreeFilterTest extends SapphireTest {
static $fixture_file = 'cms/tests/CMSSiteTreeFilterTest.yml';
static $fixture_file = 'CMSSiteTreeFilterTest.yml';
function testSearchFilterEmpty() {
$page1 = $this->objFromFixture('Page', 'page1');

View File

@ -5,7 +5,7 @@
*/
class ContentControllerTest extends FunctionalTest {
public static $fixture_file = 'cms/tests/ContentControllerTest.yml';
public static $fixture_file = 'ContentControllerTest.yml';
public static $use_draft_site = true;

View File

@ -7,7 +7,7 @@ class ModelAsControllerTest extends FunctionalTest {
protected $usesDatabase = true;
static $fixture_file = 'cms/tests/ModelAsControllerTest.yml';
static $fixture_file = 'ModelAsControllerTest.yml';
protected $autoFollowRedirection = false;

View File

@ -4,7 +4,7 @@
* @subpackage tests
*/
class RootURLControllerTest extends SapphireTest {
static $fixture_file = 'cms/tests/RootURLControllerTest.yml';
static $fixture_file = 'RootURLControllerTest.yml';
function testHomepageForDomain() {
$originalHost = $_SERVER['HTTP_HOST'];

View File

@ -5,7 +5,7 @@
*/
class ErrorPageTest extends FunctionalTest {
static $fixture_file = 'cms/tests/ErrorPageTest.yml';
static $fixture_file = 'ErrorPageTest.yml';
protected $orig = array();

View File

@ -4,7 +4,7 @@
* Tests link tracking to files and images.
*/
class FileLinkTrackingTest extends SapphireTest {
static $fixture_file = "cms/tests/FileLinkTrackingTest.yml";
static $fixture_file = "FileLinkTrackingTest.yml";
function setUp() {
parent::setUp();

View File

@ -1,7 +1,7 @@
<?php
class RedirectorPageTest extends FunctionalTest {
static $fixture_file = 'cms/tests/RedirectorPageTest.yml';
static $fixture_file = 'RedirectorPageTest.yml';
static $use_draft_site = true;
function testGoodRedirectors() {

View File

@ -14,7 +14,7 @@
*/
class SiteTreeActionsTest extends FunctionalTest {
static $fixture_file = 'cms/tests/SiteTreeActionsTest.yml';
static $fixture_file = 'SiteTreeActionsTest.yml';
static function set_up_once() {
SiteTreeTest::set_up_once();

View File

@ -1,7 +1,7 @@
<?php
class SiteTreeBacklinksTest extends SapphireTest {
static $fixture_file = "cms/tests/SiteTreeBacklinksTest.yml";
static $fixture_file = "SiteTreeBacklinksTest.yml";
protected $requiredExtensions = array(
'SiteTree' => array('SiteTreeBacklinksTest_DOD'),

View File

@ -4,7 +4,7 @@
* @subpackage tests
*/
class SiteTreeBrokenLinksTest extends SapphireTest {
static $fixture_file = 'cms/tests/SiteTreeBrokenLinksTest.yml';
static $fixture_file = 'SiteTreeBrokenLinksTest.yml';
static function set_up_once() {
SiteTreeTest::set_up_once();

View File

@ -1,6 +1,6 @@
<?php
class SiteTreeHtmlEditorFieldTest extends FunctionalTest {
public static $fixture_file = 'cms/tests/SiteTreeHtmlEditorFieldTest.yml';
public static $fixture_file = 'SiteTreeHtmlEditorFieldTest.yml';
public static $use_draft_site = true;

View File

@ -7,7 +7,7 @@
* @todo Test canCreate()
*/
class SiteTreePermissionsTest extends FunctionalTest {
static $fixture_file = "cms/tests/SiteTreePermissionsTest.yml";
static $fixture_file = "SiteTreePermissionsTest.yml";
protected $illegalExtensions = array(
'SiteTree' => array('SiteTreeSubsites')

View File

@ -4,7 +4,7 @@
* @subpackage tests
*/
class SiteTreeTest extends SapphireTest {
static $fixture_file = 'cms/tests/SiteTreeTest.yml';
static $fixture_file = 'SiteTreeTest.yml';
protected $illegalExtensions = array(
'SiteTree' => array('SiteTreeSubsites')

View File

@ -1,7 +1,7 @@
<?php
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

View File

@ -5,7 +5,9 @@
*/
class SideReportTest extends SapphireTest {
static $fixture_file = 'cms/tests/SideReportTest.yml';
static $fixture_file = 'SideReportTest.yml';
static $daysAgo = 14;
function setUp() {

View File

@ -1,7 +1,7 @@
<?php
class CMSMainSearchTreeFormTest extends FunctionalTest {
static $fixture_file = 'cms/tests/CMSMainTest.yml';
static $fixture_file = '../controller/CMSMainTest.yml';
protected $autoFollowRedirection = false;

View File

@ -8,7 +8,7 @@
*/
class SearchFormTest extends FunctionalTest {
static $fixture_file = 'cms/tests/SearchFormTest.yml';
static $fixture_file = 'SearchFormTest.yml';
protected $mockController;

View File

@ -5,7 +5,7 @@
*/
class MigrateSiteTreeLinkingTaskTest extends SapphireTest {
public static $fixture_file = 'cms/tests/MigrateSiteTreeLinkingTaskTest.yml';
public static $fixture_file = 'MigrateSiteTreeLinkingTaskTest.yml';
public static $use_draft_site = true;

View File

@ -32,7 +32,7 @@
*/
class RemoveOrphanedPagesTaskTest extends FunctionalTest {
static $fixture_file = 'cms/tests/RemoveOrphanedPagesTaskTest.yml';
static $fixture_file = 'RemoveOrphanedPagesTaskTest.yml';
static $use_draft_site = false;

View File

@ -4,7 +4,7 @@
* @subpackage tests
*/
class WidgetControllerTest extends FunctionalTest {
static $fixture_file = 'cms/tests/WidgetControllerTest.yml';
static $fixture_file = 'WidgetControllerTest.yml';
protected $extraDataObjects = array(
'WidgetControllerTestPage',