function NumericArgumentTitleTest::testTitleWithBreakPhraseOrOperator

Tests title() method with break_phrase enabled and OR operator.

File

core/modules/views/tests/src/Unit/Plugin/argument/NumericArgumentTitleTest.php, line 33

Class

NumericArgumentTitleTest
Tests the title() method of NumericArgument.

Namespace

Drupal\Tests\views\Unit\Plugin\argument

Code

public function testTitleWithBreakPhraseOrOperator() : void {
  $numeric_argument = $this->createNumericArgument();
  $numeric_argument->argument = '123+456+789';
  $numeric_argument->options['break_phrase'] = TRUE;
  $result = $numeric_argument->title();
  $this->assertEquals('123 + 456 + 789', $result);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.