function NumericArgumentTitleTest::testTitleWithSingleValue

Tests title() method with single numeric value.

File

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

Class

NumericArgumentTitleTest
Tests the title() method of NumericArgument.

Namespace

Drupal\Tests\views\Unit\Plugin\argument

Code

public function testTitleWithSingleValue() : void {
  $numeric_argument = $this->createNumericArgument();
  $numeric_argument->argument = '123';
  $result = $numeric_argument->title();
  $this->assertEquals('123', $result);
}

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