protected function MigrateCaptchaPointsTest::setUp in CAPTCHA 8
Overrides MigrateDrupal7TestBase::setUp
File
- tests/
src/ Kernel/ Migrate/ d7/ MigrateCaptchaPointsTest.php, line 42
Class
- MigrateCaptchaPointsTest
- Migrates various configuration objects owned by the captcha module.
Namespace
Drupal\Tests\captcha\Kernel\Migrate\d7Code
protected function setUp() : void {
parent::setUp();
$this
->loadFixture(implode(DIRECTORY_SEPARATOR, [
DRUPAL_ROOT,
drupal_get_path('module', 'captcha'),
'tests',
'fixtures',
'drupal7.php',
]));
$this
->installEntitySchema('captcha_point');
$this
->installSchema('captcha', [
'captcha_sessions',
]);
$this
->installConfig('captcha');
$migrations = [
'd7_captcha_points',
];
$this
->executeMigrations($migrations);
$this->captchaStorage = $this->container
->get('entity_type.manager')
->getStorage('captcha_point');
}