You are here

public function MigrateD6SmsPhoneNumberTest::testMigrationRequirements in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/Migrate/MigrateD6SmsPhoneNumberTest.php \Drupal\Tests\sms\Kernel\Migrate\MigrateD6SmsPhoneNumberTest::testMigrationRequirements()
  2. 2.1.x tests/src/Kernel/Migrate/MigrateD6SmsPhoneNumberTest.php \Drupal\Tests\sms\Kernel\Migrate\MigrateD6SmsPhoneNumberTest::testMigrationRequirements()

Tests that the requirements for the d7_sms_number migration are enforced.

File

tests/src/Kernel/Migrate/MigrateD6SmsPhoneNumberTest.php, line 42

Class

MigrateD6SmsPhoneNumberTest
Tests Drupal 6 SMS User phone number migrations.

Namespace

Drupal\Tests\sms\Kernel\Migrate

Code

public function testMigrationRequirements() {
  $this
    ->setExpectedException(RequirementsException::class, 'Missing migrations d6_user, phone_number_settings.');
  $this
    ->getMigration('d6_sms_number')
    ->checkRequirements();
}