public function SchemaMetatagManagerTest::testUnserialize in Schema.org Metatag 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/SchemaMetatagManagerTest.php \Drupal\Tests\schema_metatag\Unit\SchemaMetatagManagerTest::testUnserialize()
@covers ::unserialize @dataProvider arrayData
File
- tests/
src/ Unit/ SchemaMetatagManagerTest.php, line 51
Class
- SchemaMetatagManagerTest
- @coversDefaultClass \Drupal\schema_metatag\SchemaMetatagManager
Namespace
Drupal\Tests\schema_metatag\UnitCode
public function testUnserialize($tests, $original, $original_serialized, $desired, $desired_serialized) {
if (!in_array('unserialize', $tests)) {
$this
->assertTrue(TRUE);
return;
}
$processed = SchemaMetatagManager::unserialize($original_serialized);
$this
->assertEquals($desired, $processed);
}