mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Ensure test fixture uses test module manifest
This commit is contained in:
parent
3983b4d1b1
commit
695194546d
@ -6,10 +6,26 @@ use Dotenv\Loader;
|
||||
use SilverStripe\Config\Collections\MemoryConfigCollection;
|
||||
use SilverStripe\Control\Director;
|
||||
use SilverStripe\Core\Config\CoreConfigFactory;
|
||||
use SilverStripe\Core\Manifest\ModuleLoader;
|
||||
use SilverStripe\Core\Manifest\ModuleManifest;
|
||||
use SilverStripe\Dev\SapphireTest;
|
||||
|
||||
class ConfigManifestTest extends SapphireTest
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$moduleManifest = new ModuleManifest(dirname(__FILE__) . '/fixtures/configmanifest');
|
||||
ModuleLoader::instance()->pushManifest($moduleManifest);
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
ModuleLoader::instance()->popManifest();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* This is a helper method for getting a new manifest
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user