public function TestBaseTest::providerRandomStringValidate in Drupal 8
Provides data for the random string validation test.
Return value
array
- The expected result of the validation.
- The string to validate.
File
- core/modules/ simpletest/ tests/ src/ Unit/ TestBaseTest.php, line 65 
Class
- TestBaseTest
- @requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase
Namespace
Drupal\Tests\simpletest\UnitCode
public function providerRandomStringValidate() {
  return [
    [
      FALSE,
      ' curry paste',
    ],
    [
      FALSE,
      'curry paste ',
    ],
    [
      FALSE,
      'curry  paste',
    ],
    [
      FALSE,
      'curry   paste',
    ],
    [
      TRUE,
      'curry paste',
    ],
    [
      TRUE,
      'thai green curry paste',
    ],
    [
      TRUE,
      '@startswithat',
    ],
    [
      TRUE,
      'contains@at',
    ],
  ];
}