Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
flood_control
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
flood_control
Commits
bb50fad6
Commit
bb50fad6
authored
2 years ago
by
M Parker
Committed by
Fabian de Rijk
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3329995
by mparker17: Declare upgrade status from D7
parent
7e8c11b8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
migrations/state/flood_control.migrate_drupal.yml
+3
-0
3 additions, 0 deletions
migrations/state/flood_control.migrate_drupal.yml
tests/src/Kernel/ValidateD7MigrationStateTest.php
+26
-0
26 additions, 0 deletions
tests/src/Kernel/ValidateD7MigrationStateTest.php
with
29 additions
and
0 deletions
migrations/state/flood_control.migrate_drupal.yml
0 → 100644
+
3
−
0
View file @
bb50fad6
finished:
7:
flood_control: flood_control
This diff is collapsed.
Click to expand it.
tests/src/Kernel/ValidateD7MigrationStateTest.php
0 → 100644
+
26
−
0
View file @
bb50fad6
<?php
namespace
Drupal\Tests\flood_control\Kernel
;
use
Drupal\Tests\migrate_drupal
\Kernel\d7\MigrateDrupal7TestBase
;
use
Drupal\Tests\migrate_drupal
\Traits\ValidateMigrationStateTestTrait
;
/**
* Tests that flood_control has a declared D7 migration status.
*
* ValidateMigrationStateTestTrait::testMigrationState() will succeed if the
* modules enabled in \Drupal\Tests\KernelTestBase::bootKernel() have a valid
* migration status (i.e.: finished or not_finished); but will fail if they do
* not have a declared migration status.
*
* @group flood_control
*/
class
ValidateD7MigrationStateTest
extends
MigrateDrupal7TestBase
{
use
ValidateMigrationStateTestTrait
;
/**
* {@inheritdoc}
*/
public
static
$modules
=
[
'flood_control'
];
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment