You are here

protected property SearchNumberMatchingTest::$numbers in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/Tests/SearchNumberMatchingTest.php \Drupal\search\Tests\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/src/Tests/SearchNumberMatchingTest.php, line 35
Contains \Drupal\search\Tests\SearchNumberMatchingTest.

Class

SearchNumberMatchingTest
Tests that numbers can be searched with more complex matching.

Namespace

Drupal\search\Tests

Code

protected $numbers = array(
  '123456789',
  '12/34/56789',
  '12.3456789',
  '12-34-56789',
  '123,456,789',
  '-123456789',
  '0123456789',
);