Permalink
Browse files

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

…files
  • Loading branch information...
1 parent 60abe5f commit f547da23a326409c1d92686db36ebd5bd32fa3c0 @chillu chillu committed Mar 30, 2011
@@ -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;
@@ -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');
@@ -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;
@@ -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;
@@ -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'];
@@ -5,7 +5,7 @@
*/
class ErrorPageTest extends FunctionalTest {
- static $fixture_file = 'cms/tests/ErrorPageTest.yml';
+ static $fixture_file = 'ErrorPageTest.yml';
protected $orig = array();
@@ -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();
@@ -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() {
@@ -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();
@@ -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'),
@@ -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();
@@ -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;
@@ -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')
@@ -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')
@@ -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
@@ -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() {
@@ -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;
@@ -8,7 +8,7 @@
*/
class SearchFormTest extends FunctionalTest {
- static $fixture_file = 'cms/tests/SearchFormTest.yml';
+ static $fixture_file = 'SearchFormTest.yml';
protected $mockController;
@@ -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;
@@ -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;
@@ -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',

0 comments on commit f547da2

Please sign in to comment.