aggregator-2.x-dev/tests/src/Functional/migrate_drupal_ui/d7/UpgradeTest.php
tests/src/Functional/migrate_drupal_ui/d7/UpgradeTest.php
<?php
namespace Drupal\Tests\aggregator\Functional\migrate_drupal_ui\d7;
use Drupal\Tests\aggregator\Functional\migrate_drupal_ui\MigrateUpgradeExecuteTestBase;
use Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeTestBase;
/**
* Tests Drupal 7 upgrade using the migrate UI.
*
* @group aggregator
*/
class UpgradeTest extends MigrateUpgradeExecuteTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'aggregator',
'migrate_drupal_ui',
];
/**
* {@inheritdoc}
*
* @phpstan-ignore-next-line
*/
protected function setUp(): void {
MigrateUpgradeTestBase::setUp();
$this->loadFixture($this->getModulePath('aggregator') . '/tests/fixtures/drupal7.php');
}
/**
* {@inheritdoc}
*/
protected function getSourceBasePath() {
return __DIR__ . '/files';
}
/**
* {@inheritdoc}
*/
protected function getEntityCounts() {
return [
'aggregator_feed' => 1,
'aggregator_item' => 10,
'block' => 27,
'entity_view_display' => 35,
'entity_view_mode' => 13,
'view' => 16,
];
}
/**
* {@inheritdoc}
*/
protected function getEntityCountsIncremental() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getAvailablePaths() {
return [
'Aggregator',
];
}
/**
* {@inheritdoc}
*/
protected function getMissingPaths() {
return [];
}
}
