function PostgresqlSchemaTest::providerComputedConstraintName

Data provider for ::testComputedConstraintName().

File

core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlSchemaTest.php, line 69

Class

PostgresqlSchemaTest
@coversDefaultClass \Drupal\Core\Database\Driver\pgsql\Schema @group Database

Namespace

Drupal\Tests\Core\Database\Driver\pgsql

Code

public function providerComputedConstraintName() {
    return [
        [
            'user_field_data',
            'pkey',
            'user_field_data____pkey',
        ],
        [
            'user_field_data',
            'name__key',
            'user_field_data__name__key',
        ],
        [
            'user_field_data',
            'a_veeeery_veery_very_super_long_field_name__key',
            'drupal_BGGYAXgbqlAF1rMOyFTdZGj9zIMXZtSvEjMAKZ9wGIk_key',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.