function ProfileFieldCheckRequirementsTest::testCheckRequirements

Same name in this branch
  1. 10 core/modules/user/tests/src/Kernel/Migrate/d6/ProfileFieldCheckRequirementsTest.php \Drupal\Tests\user\Kernel\Migrate\d6\ProfileFieldCheckRequirementsTest::testCheckRequirements()
Same name in other branches
  1. 9 core/modules/user/tests/src/Kernel/Migrate/d6/ProfileFieldCheckRequirementsTest.php \Drupal\Tests\user\Kernel\Migrate\d6\ProfileFieldCheckRequirementsTest::testCheckRequirements()
  2. 9 core/modules/user/tests/src/Kernel/Migrate/d7/ProfileFieldCheckRequirementsTest.php \Drupal\Tests\user\Kernel\Migrate\d7\ProfileFieldCheckRequirementsTest::testCheckRequirements()
  3. 8.9.x core/modules/user/tests/src/Kernel/Migrate/d6/ProfileFieldCheckRequirementsTest.php \Drupal\Tests\user\Kernel\Migrate\d6\ProfileFieldCheckRequirementsTest::testCheckRequirements()
  4. 8.9.x core/modules/user/tests/src/Kernel/Migrate/d7/ProfileFieldCheckRequirementsTest.php \Drupal\Tests\user\Kernel\Migrate\d7\ProfileFieldCheckRequirementsTest::testCheckRequirements()
  5. 11.x core/modules/user/tests/src/Kernel/Migrate/d6/ProfileFieldCheckRequirementsTest.php \Drupal\Tests\user\Kernel\Migrate\d6\ProfileFieldCheckRequirementsTest::testCheckRequirements()
  6. 11.x core/modules/user/tests/src/Kernel/Migrate/d7/ProfileFieldCheckRequirementsTest.php \Drupal\Tests\user\Kernel\Migrate\d7\ProfileFieldCheckRequirementsTest::testCheckRequirements()

Tests exception is thrown when profile_fields tables do not exist.

File

core/modules/user/tests/src/Kernel/Migrate/d7/ProfileFieldCheckRequirementsTest.php, line 28

Class

ProfileFieldCheckRequirementsTest
Tests check requirements for profile_field source plugin.

Namespace

Drupal\Tests\user\Kernel\Migrate\d7

Code

public function testCheckRequirements() : void {
    $this->expectException(RequirementsException::class);
    $this->expectExceptionMessage('Profile module not enabled on source site');
    $this->getMigration('user_profile_field')
        ->getSourcePlugin()
        ->checkRequirements();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.