depcalc-8.x-1.x-dev/tests/src/Kernel/EventSubscriber/DependencyCollector/PathAliasEntityCollectorTest.php

tests/src/Kernel/EventSubscriber/DependencyCollector/PathAliasEntityCollectorTest.php
<?php

namespace Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollector;

/**
 * Test path alias dependency collector.
 *
 * @coversDefaultClass \Drupal\depcalc\EventSubscriber\DependencyCollector\PathAliasEntityCollector
 *
 * @group depcalc
 *
 * @package Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollector
 */
class PathAliasEntityCollectorTest extends EntityPathAliasCollectorTest {

  /**
   * Tests dependencies calculation for path alias.
   *
   * @covers ::onCalculateDependencies
   *
   * @throws \Exception
   */
  public function testDependencyCollector() {
    // Path alias dependency on node.
    $path_alias_dependencies = $this->calculateDependencies($this->alias);
    $this->assertArrayHasKey($this->node->uuid(), $path_alias_dependencies);
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc