You are here

protected function LinkcheckerUnpublish404Test::reloadNode in Link checker 8

Gets node last updated data from DB.

Parameters

\Drupal\node\NodeInterface $node: Node to reload.

Return value

\Drupal\Core\Entity\EntityInterface|\Drupal\node\Entity\Node|null Reloaded node.

1 call to LinkcheckerUnpublish404Test::reloadNode()
LinkcheckerUnpublish404Test::testStatusHandling in tests/src/Kernel/LinkcheckerUnpublish404Test.php
Test link checker service status handling.

File

tests/src/Kernel/LinkcheckerUnpublish404Test.php, line 175

Class

LinkcheckerUnpublish404Test
Test for Unpublish on 404 status handling.

Namespace

Drupal\Tests\linkchecker\Kernel

Code

protected function reloadNode(NodeInterface $node) {
  return Node::load($node
    ->id());
}