You are here

public function SchemaMetatagManagerTest::stringData in Schema.org Metatag 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/SchemaMetatagManagerTest.php \Drupal\Tests\schema_metatag\Unit\SchemaMetatagManagerTest::stringData()

Provides string data.

Return value

array

  • name: name of the data set.

    • original: original data.
    • desired: desired result.

File

tests/src/Unit/SchemaMetatagManagerTest.php, line 346

Class

SchemaMetatagManagerTest
@coversDefaultClass \Drupal\schema_metatag\SchemaMetatagManager

Namespace

Drupal\Tests\schema_metatag\Unit

Code

public function stringData() {
  $values = [
    'Comma separated' => [
      'First,Second,Third',
      [
        'First',
        'Second',
        'Third',
      ],
    ],
    'Needs trimming' => [
      ' First, Second , Third',
      [
        'First',
        'Second',
        'Third',
      ],
    ],
  ];
  return $values;
}