You are here

public function SchemaMetatagManagerTest::testPivot 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::testPivot()

@covers ::pivot @dataProvider pivotData

File

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

Class

SchemaMetatagManagerTest
@coversDefaultClass \Drupal\schema_metatag\SchemaMetatagManager

Namespace

Drupal\Tests\schema_metatag\Unit

Code

public function testPivot($original, $desired) {
  $processed = SchemaMetatagManager::pivot($original);
  $this
    ->assertEquals($desired, $processed);
}