You are here

public function PostgresqlSchemaTest::providerComputedConstraintName in Drupal 8

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',
    ],
  ];
}