Merge pull request #3209 from aspendigital/singleton-testing
Reload October singletons in PluginTestCase for #3208
This commit is contained in:
commit
a3b93f1a0b
|
|
@ -48,17 +48,17 @@ abstract class PluginTestCase extends Illuminate\Foundation\Testing\TestCase
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* Force reload of October singletons
|
||||||
|
*/
|
||||||
|
PluginManager::forgetInstance();
|
||||||
|
UpdateManager::forgetInstance();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create application instance
|
* Create application instance
|
||||||
*/
|
*/
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
/*
|
|
||||||
* Rebind Laravel container in October Singletons
|
|
||||||
*/
|
|
||||||
UpdateManager::instance()->bindContainerObjects();
|
|
||||||
PluginManager::instance()->bindContainerObjects();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ensure system is up to date
|
* Ensure system is up to date
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue