Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293784

TaxonomyVocabularyHierarchyUpdateTest::testTaxonomyUpdateParents() is prone to breaking on PostgreSQL

$
0
0

Problem/Motivation

In #2957381: Data model problems with Vocabulary hierarchy we added an update path test which tries to verify that an index exists by looking up its name. However, there are two problems with that approach:

- the real intention of the test was to check whether an index with a given set of columns exists on a table;
- on PostgreSQL, if the name of an index exceeds 63 chars (the identifier limit) and its table is renamed, the new name of the index can not be determined in any way.

Proposed resolution

Add a database schema introspection test trait and use it in \Drupal\Tests\taxonomy\Functional\Update\TaxonomyVocabularyHierarchyUpdateTest::testTaxonomyUpdateParents().

Remaining tasks

Review.

User interface changes

Nope.

API changes

A new trait is available for tests that need to check whether an index with a given set of columns exists.

Data model changes

Nope.

Release notes snippet

Nope.


Viewing all articles
Browse latest Browse all 293784

Trending Articles