Merge pull request #3209 from aspendigital/singleton-testing

Reload October singletons in PluginTestCase for #3208
This commit is contained in:
Samuel Georges 2017-11-14 08:59:17 +11:00 committed by GitHub
commit a3b93f1a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

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
*/