
| Current Path : /var/www/html/musik/web/modules/contrib/metatag/tests/src/Kernel/Migrate/d7/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/musik/web/modules/contrib/metatag/tests/src/Kernel/Migrate/d7/MetatagFieldTest.php |
<?php
namespace Drupal\Tests\metatag\Kernel\Migrate\d7;
use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
/**
* Tests Metatag-D7 field source plugin.
*
* @group metatag
* @covers \Drupal\metatag\Plugin\migrate\source\d7\MetatagField
*/
class MetatagFieldTest extends MigrateSqlSourceTestBase {
/**
* {@inheritdoc}
*/
public static $modules = ['token', 'metatag', 'migrate_drupal'];
/**
* {@inheritdoc}
*/
public function providerSource() {
$tests = [];
$tests[0]['source_data']['metatag'] = [
[
'entity_type' => 'node',
],
[
'entity_type' => 'taxonomy_term',
],
[
'entity_type' => 'user',
],
];
// The expected results are identical to the source data.
$tests[0]['expected_data'] = [
[
'entity_type' => 'node',
],
[
'entity_type' => 'taxonomy_term',
],
[
'entity_type' => 'user',
],
];
return $tests;
}
}