function ArgumentTransformTermTest::termArgumentTransformationProvider

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/tests/src/Kernel/Views/ArgumentTransformTermTest.php \Drupal\Tests\taxonomy\Kernel\Views\ArgumentTransformTermTest::termArgumentTransformationProvider()
  2. 8.9.x core/modules/taxonomy/tests/src/Kernel/Views/ArgumentTransformTermTest.php \Drupal\Tests\taxonomy\Kernel\Views\ArgumentTransformTermTest::termArgumentTransformationProvider()
  3. 11.x 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 53

Class

ArgumentTransformTermTest
Tests taxonomy term argument transformation.

Namespace

Drupal\Tests\taxonomy\Kernel\Views

Code

public static function termArgumentTransformationProvider() {
    return [
        'space in the middle' => [
            'name' => Random::machineName() . ' ' . Random::machineName(),
        ],
        'space at the start' => [
            'name' => ' ' . Random::machineName(),
        ],
        'space at the end' => [
            'name' => Random::machineName() . ' ',
        ],
    ];
}

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