You are here

public function PostgresqlSchemaTest::providerComputedConstraintName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlSchemaTest.php \Drupal\Tests\Core\Database\Driver\pgsql\PostgresqlSchemaTest::providerComputedConstraintName()

Data provider for ::testComputedConstraintName().

File

core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlSchemaTest.php, line 73
Contains \Drupal\Tests\Core\Database\Driver\pgsql\PostgresqlSchemaTest.

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