function SchemaTest::providerComputedConstraintName
Same name and namespace in other branches
- 10 core/modules/pgsql/tests/src/Unit/SchemaTest.php \Drupal\Tests\pgsql\Unit\SchemaTest::providerComputedConstraintName()
- 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 73
Class
- SchemaTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21pgsql%21src%21Driver%21Database%21pgsql%21Schema.php/class/Schema/9" title="PostgreSQL implementation of \Drupal\Core\Database\Schema." class="local">\Drupal\pgsql\Driver\Database\pgsql\Schema</a> @group Database
Namespace
Drupal\Tests\pgsql\UnitCode
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_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.