BUG Prevent translatable / subdirs interfering with test state

This commit is contained in:
Damian Mooyman 2016-08-23 12:36:12 +12:00
parent 7c97a8ae74
commit 0e61dfc3f6
3 changed files with 20 additions and 10 deletions

View File

@ -13,6 +13,9 @@ class FileSubsitesTest extends BaseSubsiteTest
'File' => array(
'SecureFileExtension',
'VersionedFileExtension'
),
'SiteTree' => array(
'Translatable',
)
);

View File

@ -176,6 +176,9 @@ class SiteTreeSubsitesTest extends BaseSubsiteTest
}
public function testCopyToSubsite() {
// Remove baseurl if testing in subdir
Config::inst()->update('Director', 'alternate_base_url', '/');
/** @var Subsite $otherSubsite */
$otherSubsite = $this->objFromFixture('Subsite', 'subsite1');
$staffPage = $this->objFromFixture('Page', 'staff'); // nested page

View File

@ -7,6 +7,10 @@ class SubsitesVirtualPageTest extends BaseSubsiteTest
'subsites/tests/SubsitesVirtualPageTest.yml',
);
protected $illegalExtensions = array(
'SiteTree' => array('Translatable')
);
public function setUp()
{
parent::setUp();