Skip to content

Commit

Permalink
BUG Ensure test fixture uses test module manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Mooyman committed Feb 27, 2017
1 parent e27a5d0 commit bfc0e6f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/php/Core/Manifest/ConfigManifestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,26 @@
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
*
Expand Down

0 comments on commit bfc0e6f

Please sign in to comment.