You are here

protected function PendingRevisionTest::getTaxonomyIndex in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/tests/src/Kernel/PendingRevisionTest.php \Drupal\Tests\taxonomy\Kernel\PendingRevisionTest::getTaxonomyIndex()
  2. 10 core/modules/taxonomy/tests/src/Kernel/PendingRevisionTest.php \Drupal\Tests\taxonomy\Kernel\PendingRevisionTest::getTaxonomyIndex()
1 call to PendingRevisionTest::getTaxonomyIndex()
PendingRevisionTest::testTaxonomyIndexWithPendingRevision in core/modules/taxonomy/tests/src/Kernel/PendingRevisionTest.php
Tests that the taxonomy index work correctly with pending revisions.

File

core/modules/taxonomy/tests/src/Kernel/PendingRevisionTest.php, line 120

Class

PendingRevisionTest
Kernel tests for taxonomy pending revisions.

Namespace

Drupal\Tests\taxonomy\Kernel

Code

protected function getTaxonomyIndex() {
  return \Drupal::database()
    ->select('taxonomy_index')
    ->fields('taxonomy_index')
    ->execute()
    ->fetchAllAssoc('nid');
}