Issue #3480237: Convert TermIndexTest::testTaxonomyIndex() to a kernel test
Open
requested to merge issue/drupal-3480237:3480237-convert-termindextesttesttaxonomyindex-to into 11.x
2 unresolved threads
Closes #3480237
Merge request reports
Activity
added 1 commit
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