function DriverSpecificSchemaTestBase::checkSchemaComment
Same name and namespace in other branches
- 10 core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php \Drupal\KernelTests\Core\Database\DriverSpecificSchemaTestBase::checkSchemaComment()
Checks that a table or column comment matches a given description.
Parameters
string|false $description: The asserted description. Use FALSE to assert there is no description.
string $table: The table to test.
string|null $column: Optional column to test.
2 calls to DriverSpecificSchemaTestBase::checkSchemaComment()
- DriverSpecificSchemaTestBase::testSchema in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificSchemaTestBase.php - Tests database interactions.
- DriverSpecificSchemaTestBase::testSchemaMethodsWithView in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificSchemaTestBase.php - Tests table schema methods when a view exists.
3 methods override DriverSpecificSchemaTestBase::checkSchemaComment()
- SchemaTest::checkSchemaComment in core/
modules/ sqlite/ tests/ src/ Kernel/ sqlite/ SchemaTest.php - Checks that a table or column comment matches a given description.
- SchemaTest::checkSchemaComment in core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ SchemaTest.php - Checks that a table or column comment matches a given description.
- SchemaTest::checkSchemaComment in core/
modules/ pgsql/ tests/ src/ Kernel/ pgsql/ SchemaTest.php - Checks that a table or column comment matches a given description.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificSchemaTestBase.php, line 57
Class
- DriverSpecificSchemaTestBase
- Tests table creation and modification via the schema API.
Namespace
Drupal\KernelTests\Core\DatabaseCode
abstract public function checkSchemaComment(string|false $description, string $table, ?string $column = NULL) : void;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.