function SchemaTest::providerComputedConstraintName

Same name and namespace in other branches
  1. 9 core/modules/pgsql/tests/src/Unit/SchemaTest.php \Drupal\Tests\pgsql\Unit\SchemaTest::providerComputedConstraintName()
  2. 11.x core/modules/pgsql/tests/src/Unit/SchemaTest.php \Drupal\Tests\pgsql\Unit\SchemaTest::providerComputedConstraintName()

Data provider for ::testComputedConstraintName().

File

core/modules/pgsql/tests/src/Unit/SchemaTest.php, line 52

Class

SchemaTest
@coversDefaultClass \Drupal\pgsql\Driver\Database\pgsql\Schema[[api-linebreak]] @group Database

Namespace

Drupal\Tests\pgsql\Unit

Code

public static 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_very_very_very_very_super_long_field_name__key',
      'drupal_WW_a8TlbZ3UQi20UTtRlJFaIeSa6FEtQS5h4NRA3UeU_key',
    ],
  ];
}

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