public function LinkcheckerHtmlLinkExtractorTest::setUp in Link checker 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ LinkcheckerHtmlLinkExtractorTest.php, line 50
Class
- LinkcheckerHtmlLinkExtractorTest
- Test html link extractor.
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('linkcheckerlink');
$this
->installConfig([
'field',
'node',
'filter',
'linkchecker',
]);
$this->linkcheckerSetting = $this->container
->get('config.factory')
->getEditable('linkchecker.settings');
/** @var \Drupal\linkchecker\Plugin\LinkExtractorManager $extractorManager */
$extractorManager = $this->container
->get('plugin.manager.link_extractor');
$this->htmlLinkExtractor = $extractorManager
->createInstance('html_link_extractor');
}