public function ConnectionTest::providerEscapeMethods in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Database/ConnectionTest.php \Drupal\Tests\Core\Database\ConnectionTest::providerEscapeMethods()
Dataprovider for testEscapeMethods().
Return value
array Array of arrays with the following elements:
- Expected escaped string.
- String to escape.
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ ConnectionTest.php, line 115 - Contains \Drupal\Tests\Core\Database\ConnectionTest.
Class
- ConnectionTest
- Tests the Connection class.
Namespace
Drupal\Tests\Core\DatabaseCode
public function providerEscapeMethods() {
return array(
array(
'thing',
'thing',
),
array(
'_item',
'_item',
),
array(
'item_',
'item_',
),
array(
'_item_',
'_item_',
),
array(
'',
'!@#$%^&*()-=+',
),
array(
'123',
'!1@2#3',
),
);
}