mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
i18nSSLegacyAdapterTest setting wrong arguments for manifest.
Currently if you run i18nSSLegacyAdapterTest twice in a row you get errors about classes not existing, because the class manifest doesn't get set correctly during the test setUp() method.
This commit is contained in:
parent
56d7c1fde2
commit
e3542fead3
@ -21,7 +21,7 @@ class i18nSSLegacyAdapterTest extends SapphireTest {
|
|||||||
$this->_oldTheme = Config::inst()->get('SSViewer', 'theme');
|
$this->_oldTheme = Config::inst()->get('SSViewer', 'theme');
|
||||||
Config::inst()->update('SSViewer', 'theme', 'testtheme1');
|
Config::inst()->update('SSViewer', 'theme', 'testtheme1');
|
||||||
|
|
||||||
$classManifest = new SS_ClassManifest($this->alternateBasePath, null, true, true, false);
|
$classManifest = new SS_ClassManifest($this->alternateBasePath, false, true, false);
|
||||||
SS_ClassLoader::instance()->pushManifest($classManifest);
|
SS_ClassLoader::instance()->pushManifest($classManifest);
|
||||||
|
|
||||||
$this->originalLocale = i18n::get_locale();
|
$this->originalLocale = i18n::get_locale();
|
||||||
@ -87,4 +87,4 @@ class i18nSSLegacyAdapterTest extends SapphireTest {
|
|||||||
// );
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user