Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!1812
Issue
#3264122
: Move all aggregator tests to the module in preperation of removal in d10
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#3264122
: Move all aggregator tests to the module in preperation of removal in d10
issue/drupal-3264122:3264122-move-all-aggregator
into
9.4.x
Overview
13
Commits
69
Pipelines
0
Changes
2
2 unresolved threads
Hide all comments
Closed
spokje
requested to merge
issue/drupal-3264122:3264122-move-all-aggregator
into
9.4.x
3 years ago
Overview
13
Commits
69
Pipelines
0
Changes
2
2 unresolved threads
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
0a3bc9d0
Prev
Next
Show latest version
2 files
+
85
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
0a3bc9d0
Split off d6 migrate_drupal_ui NodeClassicTest for aggregator module into its own test
· 0a3bc9d0
spokje
authored
3 years ago
core/modules/aggregator/tests/src/Functional/migrate_drupal_ui/d6/NodeClassicTest.php
0 → 100644
+
85
−
0
Options
<?php
namespace
Drupal\Tests\aggregator\Functional\migrate_drupal_ui\d6
;
use
Drupal\migrate_drupal
\NodeMigrateType
;
use
Drupal\Tests\migrate_drupal
\Traits\NodeMigrateTypeTestTrait
;
use
Drupal\Tests\migrate_drupal_ui
\Functional\MigrateUpgradeExecuteTestBase
;
/**
* Tests the classic node migration runs for the aggregator module.
*
* The classic node migration will run and not the complete node migration
* when there is a pre-existing classic node migrate map table.
*
* @group aggregator
*/
class
NodeClassicTest
extends
MigrateUpgradeExecuteTestBase
{
use
NodeMigrateTypeTestTrait
;
/**
* {@inheritdoc}
*/
protected
static
$modules
=
[
'aggregator'
,
'migrate_drupal_ui'
,
];
/**
* {@inheritdoc}
*/
protected
function
setUp
():
void
{
parent
::
setUp
();
$this
->
loadFixture
(
$this
->
getModulePath
(
'migrate_drupal'
)
.
'/tests/fixtures/drupal6.php'
);
}
/**
* {@inheritdoc}
*/
protected
function
getSourceBasePath
()
{
return
__DIR__
.
'/files'
;
}
/**
* {@inheritdoc}
*/
protected
function
getEntityCounts
()
{
}
/**
* {@inheritdoc}
*/
protected
function
getEntityCountsIncremental
()
{
}
/**
* {@inheritdoc}
*/
protected
function
getAvailablePaths
()
{
}
/**
* {@inheritdoc}
*/
protected
function
getMissingPaths
()
{
}
/**
* Tests node classic migration via the UI.
*/
public
function
testNodeClassicUpgrade
()
{
// Add a node classic migrate table to d8.
$this
->
makeNodeMigrateMapTable
(
NodeMigrateType
::
NODE_MIGRATE_TYPE_CLASSIC
,
'6'
);
// Start the upgrade process.
$this
->
submitCredentialForm
();
// Confirm there are only classic node migration map tables. This shows
// that only the classic migration will run.
$results
=
$this
->
nodeMigrateMapTableCount
(
'6'
);
$this
->
assertSame
(
14
,
$results
[
'node'
]);
$this
->
assertSame
(
0
,
$results
[
'node_complete'
]);
}
}
Loading