mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
fixing FileSubsitesTest
call extension directly in test, as Versioned now is also applied to File and has this method
This commit is contained in:
parent
e2bdd5ca41
commit
492f437589
@ -41,7 +41,7 @@ class FileSubsitesTest extends BaseSubsiteTest
|
||||
$this->assertEquals('FileTitle', $file->getTreeTitle());
|
||||
$this->assertTrue(singleton(Folder::class)->getCMSFields() instanceof FieldList);
|
||||
Subsite::changeSubsite(1);
|
||||
$this->assertEquals($file->cacheKeyComponent(), 'subsite-1');
|
||||
$this->assertEquals('subsite-1', $file->getExtensionInstance(FileSubsites::class)->cacheKeyComponent());
|
||||
}
|
||||
|
||||
public function testWritingSubsiteID()
|
||||
|
Loading…
x
Reference in New Issue
Block a user