public function BasicSyntaxTest::testGetFullQualifiedTableName in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Database/BasicSyntaxTest.php \Drupal\KernelTests\Core\Database\BasicSyntaxTest::testGetFullQualifiedTableName()
- 10 core/tests/Drupal/KernelTests/Core/Database/BasicSyntaxTest.php \Drupal\KernelTests\Core\Database\BasicSyntaxTest::testGetFullQualifiedTableName()
Tests \Drupal\Core\Database\Connection::getFullQualifiedTableName().
File
- core/
tests/ Drupal/ KernelTests/ Core/ Database/ BasicSyntaxTest.php, line 135
Class
- BasicSyntaxTest
- Tests SQL syntax interpretation.
Namespace
Drupal\KernelTests\Core\DatabaseCode
public function testGetFullQualifiedTableName() {
$database = \Drupal::database();
$num_matches = $database
->select($database
->getFullQualifiedTableName('test'), 't')
->countQuery()
->execute()
->fetchField();
$this
->assertIdentical($num_matches, '4', 'Found 4 records.');
}