private function CommerceMigrateTestTrait::assertPaymentGatewayEntity in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/CommerceMigrateTestTrait.php \Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait::assertPaymentGatewayEntity()
- 3.1.x tests/src/Kernel/CommerceMigrateTestTrait.php \Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait::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.
2 calls to CommerceMigrateTestTrait::assertPaymentGatewayEntity()
- PaymentGatewayTest::testPaymentGateway in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ PaymentGatewayTest.php - Tests payment gateway migration.
- PaymentGatewayTest::testPaymentGateway in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc6/ PaymentGatewayTest.php - Tests payment gateway migration.
1 method overrides CommerceMigrateTestTrait::assertPaymentGatewayEntity()
- PaymentGatewayTest::assertPaymentGatewayEntity in modules/
commerce/ tests/ src/ Kernel/ Migrate/ commerce1/ PaymentGatewayTest.php - Asserts a payment gateway entity.
File
- tests/
src/ Kernel/ CommerceMigrateTestTrait.php, line 415
Class
- CommerceMigrateTestTrait
- Helper function to test migrations.
Namespace
Drupal\Tests\commerce_migrate\KernelCode
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());
}