You are here

public function ArgumentTransformTermTest::termArgumentTransformationProvider in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/tests/src/Kernel/Views/ArgumentTransformTermTest.php \Drupal\Tests\taxonomy\Kernel\Views\ArgumentTransformTermTest::termArgumentTransformationProvider()
  2. 9 core/modules/taxonomy/tests/src/Kernel/Views/ArgumentTransformTermTest.php \Drupal\Tests\taxonomy\Kernel\Views\ArgumentTransformTermTest::termArgumentTransformationProvider()

Provides data for testTermArgumentTransformation().

Return value

array[] Test data.

File

core/modules/taxonomy/tests/src/Kernel/Views/ArgumentTransformTermTest.php, line 50

Class

ArgumentTransformTermTest
Tests taxonomy term argument transformation.

Namespace

Drupal\Tests\taxonomy\Kernel\Views

Code

public function termArgumentTransformationProvider() {
  return [
    'space in the middle' => [
      'name' => $this
        ->randomMachineName() . ' ' . $this
        ->randomMachineName(),
    ],
    'space at the start' => [
      'name' => ' ' . $this
        ->randomMachineName(),
    ],
    'space at the end' => [
      'name' => $this
        ->randomMachineName() . ' ',
    ],
  ];
}