Skip to content

Commit

Permalink
fixing FileSubsitesTest
Browse files Browse the repository at this point in the history
call extension directly in test, as Versioned now is also applied to File
and has this method
  • Loading branch information
wernerkrauss committed May 30, 2017
1 parent e2bdd5c commit 492f437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/FileSubsitesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testTrivialFeatures()
$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()
Expand Down

0 comments on commit 492f437

Please sign in to comment.