mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Reload October singletons in PluginTestCase for #3208
This commit is contained in:
parent
08989ff40a
commit
c419c38efd
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user