MetatagFieldTest.php in Metatag 8
File
tests/src/Kernel/Migrate/d7/MetatagFieldTest.php
View source
<?php
namespace Drupal\Tests\metatag\Kernel\Migrate\d7;
use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
class MetatagFieldTest extends MigrateSqlSourceTestBase {
public static $modules = [
'token',
'metatag',
'migrate_drupal',
];
public function providerSource() {
$tests = [];
$tests[0]['source_data']['metatag'] = [
[
'entity_type' => 'node',
],
[
'entity_type' => 'taxonomy_term',
],
[
'entity_type' => 'user',
],
];
$tests[0]['expected_data'] = [
[
'entity_type' => 'node',
],
[
'entity_type' => 'taxonomy_term',
],
[
'entity_type' => 'user',
],
];
return $tests;
}
}