You are here

public function VariableTranslationCheckRequirementsTest::testCheckRequirements in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Kernel/d6/VariableTranslationCheckRequirementsTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\VariableTranslationCheckRequirementsTest::testCheckRequirements()

Tests exception in thrown when the i18n_variable table does not exist.

File

core/modules/migrate_drupal/tests/src/Kernel/d6/VariableTranslationCheckRequirementsTest.php, line 30

Class

VariableTranslationCheckRequirementsTest
Tests check requirements for variable translation source plugin.

Namespace

Drupal\Tests\migrate_drupal\Kernel\d6

Code

public function testCheckRequirements() {
  $this
    ->expectException(RequirementsException::class);
  $this
    ->expectExceptionMessage("Source database table 'i18n_variable' does not exist");
  $this
    ->getMigration('d6_system_maintenance_translation')
    ->getSourcePlugin()
    ->checkRequirements();
}