Awight has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/284615

Change subject: Cheat encapsulation to allow us to reset the configuration 
context
......................................................................

Cheat encapsulation to allow us to reset the configuration context

Change-Id: I3acebc2577009a828f89492dd8e11ddbc4742d38
---
M Tests/BaseSmashPigUnitTestCase.php
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/SmashPig 
refs/changes/15/284615/1

diff --git a/Tests/BaseSmashPigUnitTestCase.php 
b/Tests/BaseSmashPigUnitTestCase.php
index 4e10f21..3dea54c 100644
--- a/Tests/BaseSmashPigUnitTestCase.php
+++ b/Tests/BaseSmashPigUnitTestCase.php
@@ -24,6 +24,13 @@
                        $group,
                        true
                );
+
+               // FIXME: gross.
+               $contextJailbreak = new \ReflectionClass( 
'SmashPig\Core\Context' );
+               $instanceProperty = $contextJailbreak->getProperty( 'instance' 
);
+               $instanceProperty->setAccessible( true );
+               $instanceProperty->setValue( null );
+
                Context::init( $config );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/284615
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3acebc2577009a828f89492dd8e11ddbc4742d38
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/SmashPig
Gerrit-Branch: master
Gerrit-Owner: Awight <awi...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to