protected function MigratePhoneNumberTestTrait::rollBackMigrations in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/Migrate/MigratePhoneNumberTestTrait.php \Drupal\Tests\sms\Kernel\Migrate\MigratePhoneNumberTestTrait::rollBackMigrations()
- 2.1.x tests/src/Kernel/Migrate/MigratePhoneNumberTestTrait.php \Drupal\Tests\sms\Kernel\Migrate\MigratePhoneNumberTestTrait::rollBackMigrations()
Rolls back a specified migration.
1 call to MigratePhoneNumberTestTrait::rollBackMigrations()
- MigratePhoneNumberTestTrait::testRollBack in tests/
src/ Kernel/ Migrate/ MigratePhoneNumberTestTrait.php - Tests that conditions are reverted after rollback.
File
- tests/
src/ Kernel/ Migrate/ MigratePhoneNumberTestTrait.php, line 178
Class
- MigratePhoneNumberTestTrait
- This trait executes tests for D6 and D7 SMS Framework migrations.
Namespace
Drupal\Tests\sms\Kernel\MigrateCode
protected function rollBackMigrations(array $ids) {
foreach ($ids as $id) {
$this->migration = $this
->getMigration($id);
$this
->prepareMigration($this->migration);
(new MigrateExecutable($this->migration, $this))
->rollback();
}
}