Cdentinger has uploaded a new change for review. https://gerrit.wikimedia.org/r/311892
Change subject: Use config for test queue instantiation ...................................................................... Use config for test queue instantiation Change-Id: I520852aa2c22e253ef337badc8169f89aa4069bd --- M PaymentProviders/PayPal/Tests/phpunit/CaptureIncomingMessageTest.php 1 file changed, 1 insertion(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/SmashPig refs/changes/92/311892/1 diff --git a/PaymentProviders/PayPal/Tests/phpunit/CaptureIncomingMessageTest.php b/PaymentProviders/PayPal/Tests/phpunit/CaptureIncomingMessageTest.php index 740acdf..42788ce 100644 --- a/PaymentProviders/PayPal/Tests/phpunit/CaptureIncomingMessageTest.php +++ b/PaymentProviders/PayPal/Tests/phpunit/CaptureIncomingMessageTest.php @@ -3,7 +3,6 @@ use SmashPig\Core\Configuration; use SmashPig\Core\Context; -use SmashPig\Core\QueueConsumers\BaseQueueConsumer; use SmashPig\PaymentProviders\PayPal\Listener; use SmashPig\PaymentProviders\PayPal\Job; use SmashPig\PaymentProviders\PayPal\Tests\PayPalTestConfiguration; @@ -44,8 +43,7 @@ $this->capture( self::$verified_msg ); - // TODO why get it from BaseQueueConsumer instead of config? - $jobQueue = BaseQueueConsumer::getQueue( 'jobs-paypal' ); + $jobQueue = $this->config->object( 'data-store/jobs-paypal' ); $jobMessage = $jobQueue->pop(); $this->assertEquals( $jobMessage['php-message-class'], -- To view, visit https://gerrit.wikimedia.org/r/311892 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I520852aa2c22e253ef337badc8169f89aa4069bd Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/SmashPig Gerrit-Branch: master Gerrit-Owner: Cdentinger <cdentin...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits