Skip to content

Commit

Permalink
OEL-1540: Improve test performance removing unneeded node_load.
Browse files Browse the repository at this point in the history
  • Loading branch information
escuriola committed Jun 7, 2022
1 parent 823fe14 commit 3e401f0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/src/Functional/ContentEventRenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ public function testEventPage(): void {
);

// Assert inpage_navigation not loaded if there is no body and documents.
/** @var \Drupal\node\Entity\Node $node */
$node = \Drupal::entityTypeManager()->getStorage('node')->load($node->id());
$node->set('oe_documents', NULL);
$node->set('body', NULL);
$node->save();
Expand Down

0 comments on commit 3e401f0

Please sign in to comment.