You are here

private function FocalPointCollectorTest::calculateDependencies in Acquia Content Hub 8.2

Calculates dependencies for the given node.

Parameters

\Drupal\node\NodeInterface $node: Node.

Return value

array Dependencies array.

Throws

\Exception

1 call to FocalPointCollectorTest::calculateDependencies()
FocalPointCollectorTest::testDependenciesCollection in tests/src/Kernel/DependencyCollector/FocalPointCollectorTest.php
Tests dependencies calculation for an entity reference field.

File

tests/src/Kernel/DependencyCollector/FocalPointCollectorTest.php, line 149

Class

FocalPointCollectorTest
Test focal point dependency collector.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\DependencyCollector

Code

private function calculateDependencies(NodeInterface $node) : array {
  $wrapper = new DependentEntityWrapper($node);
  return $this->calculator
    ->calculateDependencies($wrapper, new DependencyStack());
}