function 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 111 
Class
- ConnectionTest
- Tests the Connection class.
Namespace
Drupal\Tests\Core\DatabaseCode
public function providerEscapeMethods() {
  return [
    [
      'thing',
      'thing',
    ],
    [
      '_item',
      '_item',
    ],
    [
      'item_',
      'item_',
    ],
    [
      '_item_',
      '_item_',
    ],
    [
      '',
      '!@#$%^&*()-=+',
    ],
    [
      '123',
      '!1@2#3',
    ],
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
