You are here

public function LinkcheckerCleanUpTest::setUp in Link checker 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/LinkcheckerCleanUpTest.php, line 55

Class

LinkcheckerCleanUpTest
Test for linkchecker.clean_up service.

Namespace

Drupal\Tests\linkchecker\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', 'sequences');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('linkcheckerlink');
  $this
    ->installConfig([
    'field',
    'node',
    'filter',
    'linkchecker',
  ]);
  $this
    ->installSchema('linkchecker', 'linkchecker_index');
  $this->linkCleanUp = $this->container
    ->get('linkchecker.clean_up');
  $this->linkCheckerLinkStorage = $this->container
    ->get('entity_type.manager')
    ->getStorage('linkcheckerlink');
}