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