Reload October singletons in PluginTestCase for #3208

This commit is contained in:
Jim Cottrell 2017-10-27 18:22:31 -06:00
parent 08989ff40a
commit c419c38efd

View File

@ -48,17 +48,17 @@ abstract class PluginTestCase extends Illuminate\Foundation\Testing\TestCase
*/
public function setUp()
{
/*
* Force reload of October singletons
*/
PluginManager::forgetInstance();
UpdateManager::forgetInstance();
/*
* Create application instance
*/
parent::setUp();
/*
* Rebind Laravel container in October Singletons
*/
UpdateManager::instance()->bindContainerObjects();
PluginManager::instance()->bindContainerObjects();
/*
* Ensure system is up to date
*/