You are here

public function PaymentTest::testMethodConfigurationManager in Payment 8.2

@covers ::methodConfigurationManager

File

tests/src/Unit/PaymentTest.php, line 58

Class

PaymentTest
@coversDefaultClass \Drupal\payment\Payment

Namespace

Drupal\Tests\payment\Unit

Code

public function testMethodConfigurationManager() {
  $container = new Container();
  $method_configuration_manager = $this
    ->createMock(PaymentMethodConfigurationManagerInterface::class);
  $container
    ->set('plugin.manager.payment.method_configuration', $method_configuration_manager);
  \Drupal::setContainer($container);
  $this
    ->assertSame($method_configuration_manager, Payment::methodConfigurationManager());
}