public static function ProfileBillingDeletedUserTest::migrateDumpAlter in Commerce Migrate 8.2
Same name in this branch
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/ProfileBillingDeletedUserTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProfileBillingDeletedUserTest::migrateDumpAlter()
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/ProfileBillingDeletedUserTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ProfileBillingDeletedUserTest::migrateDumpAlter()
Same name and namespace in other branches
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ProfileBillingDeletedUserTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProfileBillingDeletedUserTest::migrateDumpAlter()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ProfileBillingDeletedUserTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProfileBillingDeletedUserTest::migrateDumpAlter()
Allows tests to alter dumps after they have loaded.
Parameters
\Drupal\KernelTests\KernelTestBase $test: The test that is being run.
Overrides MigrateDumpAlterInterface::migrateDumpAlter
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ ProfileBillingDeletedUserTest.php, line 56
Class
- ProfileBillingDeletedUserTest
- Tests customer profile migration.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7Code
public static function migrateDumpAlter(KernelTestBase $test) {
$db = Database::getConnection('default', 'migrate');
// Change the uid of one of the profiles to a uid for a non-existent user.
$db
->update('uc_orders')
->condition('uid', '4')
->fields([
'uid' => '400',
])
->execute();
}