public function LinkcheckerRedirectTest::setUp in Link checker 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ LinkcheckerRedirectTest.php, line 53
Class
- LinkcheckerRedirectTest
- Test linkchecker with the redirect module.
Namespace
Drupal\Tests\linkchecker\KernelCode
public function setUp() {
parent::setUp();
$this
->installSchema('system', 'sequences');
$this
->installSchema('linkchecker', 'linkchecker_index');
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installEntitySchema('redirect');
$this
->installEntitySchema('linkcheckerlink');
$this
->installConfig([
'field',
'node',
'filter',
'linkchecker',
'redirect',
]);
$this->cron = $this->container
->get('cron');
$this->redirectStorage = $this->container
->get('entity_type.manager')
->getStorage('redirect');
$this->linkCheckerLinkStorage = $this->container
->get('entity_type.manager')
->getStorage('linkcheckerlink');
NodeType::create([
'name' => 'Links',
'type' => 'links',
]);
}