mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
fixing test to check for all extended cache keys, not just the immediate
This commit is contained in:
parent
c641808f64
commit
f0de6f2d87
@ -30,7 +30,9 @@ class SiteConfigSubsitesTest extends BaseSubsiteTest {
|
||||
$this->assertEquals(SiteConfig::current_site_config()->Title, 'Subsite1');
|
||||
Subsite::changeSubsite($subsite2->ID);
|
||||
$this->assertEquals(SiteConfig::current_site_config()->Title, 'Subsite2');
|
||||
$this->assertEquals(SiteConfig::current_site_config()->cacheKeyComponent(), 'subsite-'.$subsite2->ID);
|
||||
|
||||
$keys = SiteConfig::current_site_config()->extend('cacheKeyComponent');
|
||||
$this->assertContains('subsite-' . $subsite2->ID, $keys);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user