public function EntityPathAliasCollectorTest::testDependencyCollector in Dependency Calculation 8
Tests dependencies calculation for node.
@covers ::onCalculateDependencies
Throws
\Exception
1 method overrides EntityPathAliasCollectorTest::testDependencyCollector()
- PathAliasEntityCollectorTest::testDependencyCollector in tests/
src/ Kernel/ EventSubscriber/ DependencyCollector/ PathAliasEntityCollectorTest.php - Tests dependencies calculation for path alias.
File
- tests/
src/ Kernel/ EventSubscriber/ DependencyCollector/ EntityPathAliasCollectorTest.php, line 95
Class
- EntityPathAliasCollectorTest
- Test node with path alias dependency collector.
Namespace
Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollectorCode
public function testDependencyCollector() {
// Node dependency on path alias.
$node_dependencies = $this
->calculateDependencies($this->node);
$this
->assertArrayHasKey($this->alias
->uuid(), $node_dependencies);
}