mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUG Prevent translatable / subdirs interfering with test state
This commit is contained in:
parent
7c97a8ae74
commit
0e61dfc3f6
@ -13,6 +13,9 @@ class FileSubsitesTest extends BaseSubsiteTest
|
||||
'File' => array(
|
||||
'SecureFileExtension',
|
||||
'VersionedFileExtension'
|
||||
),
|
||||
'SiteTree' => array(
|
||||
'Translatable',
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -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
|
||||
|
@ -7,6 +7,10 @@ class SubsitesVirtualPageTest extends BaseSubsiteTest
|
||||
'subsites/tests/SubsitesVirtualPageTest.yml',
|
||||
);
|
||||
|
||||
protected $illegalExtensions = array(
|
||||
'SiteTree' => array('Translatable')
|
||||
);
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
Loading…
Reference in New Issue
Block a user