You are here

public function SqlsrvConditionTest::dataProviderForTestLike in Drupal driver for SQL Server and SQL Azure 3.1.x

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/SqlsrvConditionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConditionTest::dataProviderForTestLike()
  2. 4.2.x tests/src/Unit/SqlsrvConditionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConditionTest::dataProviderForTestLike()
  3. 3.0.x tests/src/Unit/SqlsrvConditionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConditionTest::dataProviderForTestLike()
  4. 4.0.x tests/src/Unit/SqlsrvConditionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConditionTest::dataProviderForTestLike()
  5. 4.1.x tests/src/Unit/SqlsrvConditionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConditionTest::dataProviderForTestLike()

Data Provider.

File

tests/src/Unit/SqlsrvConditionTest.php, line 65

Class

SqlsrvConditionTest
Test the behavior of the custom Condition class.

Namespace

Drupal\Tests\sqlsrv\Unit

Code

public function dataProviderForTestLike() {
  return [
    [
      '%',
      '%',
    ],
    [
      '\\%',
      '[%]',
    ],
    [
      '\\_',
      '[_]',
    ],
    [
      '\\\\',
      '\\',
    ],
    [
      '[\\%]',
      '[[][%]]',
    ],
  ];
}