fixing FileSubsitesTest

call extension directly in test, as Versioned now is also applied to File
and has this method
This commit is contained in:
Werner M. Krauß 2017-05-30 15:15:54 +02:00
parent e2bdd5ca41
commit 492f437589

View File

@ -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()