You are here

private function PaymentGatewayTest::assertPaymentGatewayEntity in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/PaymentGatewayTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\PaymentGatewayTest::assertPaymentGatewayEntity()
  2. 3.0.x modules/commerce/tests/src/Kernel/Migrate/commerce1/PaymentGatewayTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\PaymentGatewayTest::assertPaymentGatewayEntity()

Asserts a payment gateway entity.

Parameters

string $id: The payment gateway id.

string $label: The payment gateway label.

int $weight: The payment gateway weight.

Overrides CommerceMigrateTestTrait::assertPaymentGatewayEntity

1 call to PaymentGatewayTest::assertPaymentGatewayEntity()
PaymentGatewayTest::testPayment in modules/commerce/tests/src/Kernel/Migrate/commerce1/PaymentGatewayTest.php
Tests payment migration.

File

modules/commerce/tests/src/Kernel/Migrate/commerce1/PaymentGatewayTest.php, line 46

Class

PaymentGatewayTest
Tests payment gateway migration.

Namespace

Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1

Code

private function assertPaymentGatewayEntity($id, $label, $weight) {
  $gateway = PaymentGateway::load($id);
  $this
    ->assertInstanceOf(PaymentGateway::class, $gateway);
  $this
    ->assertSame($label, $gateway
    ->label());
  $this
    ->assertSame($weight, $gateway
    ->getWeight());
}