protected property SearchNumberMatchingTest::$numbers in Drupal 9
Same name and namespace in other branches
- 8 core/modules/search/tests/src/Functional/SearchNumberMatchingTest.php \Drupal\Tests\search\Functional\SearchNumberMatchingTest::numbers
An array of strings containing numbers to use for testing.
Define a group of numbers that should all match each other -- numbers with internal punctuation should match each other, as well as numbers with and without leading zeros and leading/trailing . and -.
Type: string[]
File
- core/
modules/ search/ tests/ src/ Functional/ SearchNumberMatchingTest.php, line 45
Class
- SearchNumberMatchingTest
- Tests that numbers can be searched with more complex matching.
Namespace
Drupal\Tests\search\FunctionalCode
protected $numbers = [
'123456789',
'12/34/56789',
'12.3456789',
'12-34-56789',
'123,456,789',
'-123456789',
'0123456789',
];