You are here

protected property SearchNumbersTest::$numbers in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/search/tests/src/Functional/SearchNumbersTest.php \Drupal\Tests\search\Functional\SearchNumbersTest::numbers

An array containing a series of "numbers" for testing purposes.

Create content with various numbers in it. Note: 50 characters is the current limit of the search index's word field.

Type: string[]

File

core/modules/search/tests/src/Functional/SearchNumbersTest.php, line 45

Class

SearchNumbersTest
Tests that numbers can be searched.

Namespace

Drupal\Tests\search\Functional

Code

protected $numbers = [
  'ISBN' => '978-0446365383',
  'UPC' => '036000 291452',
  'EAN bar code' => '5901234123457',
  'negative' => '-123456.7890',
  'quoted negative' => '"-123456.7890"',
  'leading zero' => '0777777777',
  'tiny' => '111',
  'small' => '22222222222222',
  'medium' => '333333333333333333333333333',
  'large' => '444444444444444444444444444444444444444',
  'gigantic' => '5555555555555555555555555555555555555555555555555',
  'over fifty characters' => '666666666666666666666666666666666666666666666666666666666666',
  'date' => '01/02/2009',
  'commas' => '987,654,321',
];