Skip to content
Snippets Groups Projects

Issue #3480237: Convert TermIndexTest::testTaxonomyIndex() to a kernel test

Open Issue #3480237: Convert TermIndexTest::testTaxonomyIndex() to a kernel test
2 unresolved threads
2 unresolved threads

Closes #3480237

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Drupal\Tests\taxonomy\Functional;
6
7 use Drupal\Core\Link;
8 use Drupal\Core\Database\Database;
9 use Drupal\Core\Field\FieldStorageDefinitionInterface;
10
11 /**
12 * Tests the hook implementations that maintain the taxonomy index.
13 *
14 * @group taxonomy
15 */
16 class TermIndexTest extends TaxonomyTestBase {
  • 70 'name' => 'Test Vocabulary',
    71 'vid' => 'test_vocabulary',
    72 ]);
    73 $this->vocabulary->save();
    74
    75 // Create two taxonomy term reference fields on the article content type.
    76 $this->fieldName1 = 'field_' . $this->randomMachineName();
    77 $this->fieldName2 = 'field_' . $this->randomMachineName();
    78 $this->createTaxonomyField($this->fieldName1);
    79 $this->createTaxonomyField($this->fieldName2);
    80 }
    81
    82 /**
    83 * Helper function to create a taxonomy term reference field.
    84 */
    85 protected function createTaxonomyField(string $field_name): void {
    Please register or sign in to reply
    Loading