mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Clear cache between ThemeResourceLoader tests
This commit is contained in:
parent
9ea7b58a8f
commit
172d8915b7
@ -350,4 +350,12 @@ class ThemeResourceLoader
|
||||
}
|
||||
return $paths;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear any internally cached data from memory
|
||||
*/
|
||||
public static function flushCache()
|
||||
{
|
||||
static::$cacheData = [];
|
||||
}
|
||||
}
|
||||
|
@ -54,6 +54,9 @@ class ThemeResourceLoaderTest extends SapphireTest
|
||||
// New Loader for that root
|
||||
$this->loader = new ThemeResourceLoader($this->base);
|
||||
$this->loader->addSet('$default', $this->manifest);
|
||||
|
||||
// Flush any cached values
|
||||
ThemeResourceLoader::flushCache();
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
|
Loading…
Reference in New Issue
Block a user