You are here

public function BraintreeApiIntegrationTest::testCreatePayment in Commerce Braintree 8

Tests creating a payment.

@dataProvider dataProviderBillingProfile

File

tests/src/Kernel/BraintreeApiIntegrationTest.php, line 70

Class

BraintreeApiIntegrationTest
Tests the Braintree SDK integration.

Namespace

Drupal\Tests\commerce_braintree\Kernel

Code

public function testCreatePayment($billing_profile) {

  /** @var \Drupal\commerce_braintree\Plugin\Commerce\PaymentGateway\HostedFieldsInterface $gateway_plugin */
  $gateway_plugin = $this->gateway
    ->getPlugin();
  $gateway_plugin
    ->createPayment($this
    ->generateTestPayment($billing_profile, '10.00'));
}