public function PaymentExecutionPaymentMethodManagerTest::testGetOperationsProviderWithNonExistentPlugin in Payment 8.2
@covers ::getOperationsProvider
File
- tests/
src/ Unit/ Plugin/ Payment/ Method/ PaymentExecutionPaymentMethodManagerTest.php, line 143
Class
- PaymentExecutionPaymentMethodManagerTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\Method\PaymentExecutionPaymentMethodManager
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\MethodCode
public function testGetOperationsProviderWithNonExistentPlugin() {
$this
->expectException(PluginNotFoundException::class);
$this->paymentMethodManager
->expects($this
->atLeastOnce())
->method('getDefinitions')
->willReturn([]);
$this->sut
->getOperationsProvider($this
->randomMachineName());
}