You are here

public function CommerceMigrateTestTrait::assertProfile in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x tests/src/Kernel/CommerceMigrateTestTrait.php \Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait::assertProfile()
  2. 3.0.x tests/src/Kernel/CommerceMigrateTestTrait.php \Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait::assertProfile()

Asserts a profile entity.

Parameters

int $id: The profile id.

string $type: The profile bundle.

int $owner_id: The uid for this billing profile.

string $langcode: The profile language code.

string $is_active: The active state of the profile.

bool $is_default: True if this this the default profile.

string $created_time: The time the profile was created..

string $changed_time: The time the profile was last changed.

7 calls to CommerceMigrateTestTrait::assertProfile()
ProfileBillingDeletedUserTest::testProfileBilling in modules/ubercart/tests/src/Kernel/Migrate/uc7/ProfileBillingDeletedUserTest.php
Test profile migration.
ProfileBillingDeletedUserTest::testProfileBilling in modules/ubercart/tests/src/Kernel/Migrate/uc6/ProfileBillingDeletedUserTest.php
Test profile migration.
ProfileBillingTest::testProfileBilling in modules/ubercart/tests/src/Kernel/Migrate/uc7/ProfileBillingTest.php
Test profile migration.
ProfileBillingTest::testProfileBilling in modules/ubercart/tests/src/Kernel/Migrate/uc6/ProfileBillingTest.php
Test profile migration.
ProfileCustomerTest::testCustomerProfile in modules/magento/tests/src/Kernel/Migrate/magento2/ProfileCustomerTest.php
Test profile migration.

... See full list

File

tests/src/Kernel/CommerceMigrateTestTrait.php, line 618

Class

CommerceMigrateTestTrait
Helper function to test migrations.

Namespace

Drupal\Tests\commerce_migrate\Kernel

Code

public function assertProfile($id, $type, $owner_id, $langcode, $is_active, $is_default, $created_time, $changed_time) {
  $profile = Profile::load($id);
  $this
    ->assertProfileEntity($profile, $type, $owner_id, $langcode, $is_active, $is_default, $created_time, $changed_time);
}