You are here

public function DynamicDepthCalculationTest::testCronQueue in Taxonomy Term Depth 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/DynamicDepthCalculationTest.php \Drupal\Tests\taxonomy_term_depth\Functional\DynamicDepthCalculationTest::testCronQueue()

Test cron queue.

File

tests/src/Functional/DynamicDepthCalculationTest.php, line 108

Class

DynamicDepthCalculationTest
Getting calculating dynamically the depth of the term.

Namespace

Drupal\Tests\taxonomy_term_depth\Functional

Code

public function testCronQueue() {
  $this
    ->assertTrue(TRUE, 'Clearing all depths and running cron to update, then checking again');
  taxonomy_term_depth_queue_manager()
    ->clearDepths();
  $this
    ->_cronRun();
  $this
    ->testCalculateDepth();
}