function NumericArgumentTitleTest::testTitleWithBreakPhraseAndTokenValue
Tests title() method with break_phrase enabled token value.
File
-
core/
modules/ views/ tests/ src/ Unit/ Plugin/ argument/ NumericArgumentTitleTest.php, line 45
Class
- NumericArgumentTitleTest
- Tests the title() method of NumericArgument.
Namespace
Drupal\Tests\views\Unit\Plugin\argumentCode
public function testTitleWithBreakPhraseAndTokenValue() : void {
$numeric_argument = $this->createNumericArgument();
$numeric_argument->argument = '[token:value], string';
$numeric_argument->options['break_phrase'] = TRUE;
$result = $numeric_argument->title();
$this->assertEquals('Uncategorized', (string) $result);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.