public function LinkcheckerUnpublish404Test::setUp in Link checker 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ LinkcheckerUnpublish404Test.php, line 62
Class
- LinkcheckerUnpublish404Test
- Test for Unpublish on 404 status handling.
Namespace
Drupal\Tests\linkchecker\KernelCode
public function setUp() {
parent::setUp();
$this
->installSchema('system', 'sequences');
$this
->installSchema('node', 'node_access');
$this
->installSchema('linkchecker', 'linkchecker_index');
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installEntitySchema('linkcheckerlink');
$this
->installConfig([
'field',
'user',
'node',
'filter',
'linkchecker',
]);
$this->checkerService = $this->container
->get('linkchecker.checker');
$this->linkcheckerSetting = $this->container
->get('config.factory')
->getEditable('linkchecker.settings');
$this->unpublish404Handler = $this->container
->get('plugin.manager.link_status_handler')
->createInstance('unpublish_404');
}