Issue #2684141 by benjy, dawehner: Convert migrate kernel tests to KernelTestBaseTNG

8.2.x
Alex Pott 2016-03-21 09:31:08 +00:00
parent 1b3b670792
commit 4202cdd04b
175 changed files with 565 additions and 569 deletions

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\action\Tests\Migrate\d6\MigrateActionConfigsTest.
* Contains \Drupal\Tests\action\Kernel\Migrate\d6\MigrateActionConfigsTest.
*/
namespace Drupal\action\Tests\Migrate\d6;
namespace Drupal\Tests\action\Kernel\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to action.settings.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\action\Tests\Migrate\d6\MigrateActionsTest.
* Contains \Drupal\Tests\action\Kernel\Migrate\d6\MigrateActionsTest.
*/
namespace Drupal\action\Tests\Migrate\d6;
namespace Drupal\Tests\action\Kernel\Migrate\d6;
use Drupal\system\Entity\Action;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Tests migration of action items.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\action\Tests\Migrate\d7\MigrateActionsTest.
* Contains \Drupal\Tests\action\Kernel\Migrate\d7\MigrateActionsTest.
*/
namespace Drupal\action\Tests\Migrate\d7;
namespace Drupal\Tests\action\Kernel\Migrate\d7;
use Drupal\system\Entity\Action;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of action items.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\aggregator\Tests\Migrate\MigrateAggregatorStubTest.
* Contains \Drupal\tests\aggregator\Kernel\Migrate\MigrateAggregatorStubTest.
*/
namespace Drupal\aggregator\Tests\Migrate;
namespace Drupal\tests\aggregator\Kernel\Migrate;
use Drupal\migrate\MigrateException;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
use Drupal\migrate_drupal\Tests\StubTestTrait;
/**

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\aggregator\Tests\Migrate\d6\MigrateAggregatorConfigsTest.
* Contains \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateAggregatorConfigsTest.
*/
namespace Drupal\aggregator\Tests\Migrate\d6;
namespace Drupal\Tests\aggregator\Kernel\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to aggregator.settings.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\aggregator\Tests\Migrate\d6\MigrateAggregatorFeedTest.
* Contains \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateAggregatorFeedTest.
*/
namespace Drupal\aggregator\Tests\Migrate\d6;
namespace Drupal\Tests\aggregator\Kernel\Migrate\d6;
use Drupal\aggregator\Entity\Feed;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Tests migration of aggregator feeds.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\aggregator\Tests\Migrate\d6\MigrateAggregatorItemTest.
* Contains \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateAggregatorItemTest.
*/
namespace Drupal\aggregator\Tests\Migrate\d6;
namespace Drupal\Tests\aggregator\Kernel\Migrate\d6;
use Drupal\aggregator\Entity\Item;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Tests migration of aggregator items.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\aggregator\Tests\Migrate\d7\MigrateAggregatorFeedTest.
* Contains \Drupal\Tests\aggregator\Kernel\Migrate\d7\MigrateAggregatorFeedTest.
*/
namespace Drupal\aggregator\Tests\Migrate\d7;
namespace Drupal\Tests\aggregator\Kernel\Migrate\d7;
use Drupal\aggregator\Entity\Feed;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Test migration to aggregator_feed entities.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\aggregator\Tests\Migrate\d7\MigrateAggregatorItemTest.
* Contains \Drupal\Tests\aggregator\Kernel\Migrate\d7\MigrateAggregatorItemTest.
*/
namespace Drupal\aggregator\Tests\Migrate\d7;
namespace Drupal\Tests\aggregator\Kernel\Migrate\d7;
use Drupal\aggregator\Entity\Item;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of aggregator items.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\aggregator\Tests\Migrate\d7\MigrateAggregatorSettingsTest.
* Contains \Drupal\Tests\aggregator\Kernel\Migrate\d7\MigrateAggregatorSettingsTest.
*/
namespace Drupal\aggregator\Tests\Migrate\d7;
namespace Drupal\Tests\aggregator\Kernel\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of Aggregator's variables to configuration.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\ban\Tests\Migrate\d7\MigrateBlockedIPsTest.
* Contains \Drupal\Tests\ban\Kernel\Migrate\d7\MigrateBlockedIPsTest.
*/
namespace Drupal\ban\Tests\Migrate\d7;
namespace Drupal\Tests\ban\Kernel\Migrate\d7;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Migrate blocked IPs.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\block\Tests\Migrate\d6\MigrateBlockTest.
* Contains \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockTest.
*/
namespace Drupal\block\Tests\Migrate\d6;
namespace Drupal\Tests\block\Kernel\Migrate\d6;
use Drupal\block\Entity\Block;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Tests migration of blocks to configuration entities.

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\block\Tests\Migrate\d7\MigrateBlockTest.
* Contains \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockTest.
*/
namespace Drupal\block\Tests\Migrate\d7;
namespace Drupal\Tests\block\Kernel\Migrate\d7;
use Drupal\block\Entity\Block;
use Drupal\block_content\Entity\BlockContent;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of blocks to configuration entities.
@ -81,7 +81,6 @@ class MigrateBlockTest extends MigrateDrupal7TestBase {
* The block label.
* @param string $label_display
* The block label display setting.
*/
public function assertEntity($id, $plugin_id, array $roles, $pages, $region, $theme, $weight, $label, $label_display) {
$block = Block::load($id);

View File

@ -2,16 +2,16 @@
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\MigrateBlockContentBodyFieldTest.
* Contains \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentBodyFieldTest.
*/
namespace Drupal\block_content\Tests\Migrate;
namespace Drupal\Tests\block_content\Kernel\Migrate;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\FieldConfigInterface;
use Drupal\field\FieldStorageConfigInterface;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Attaches a body field to the custom block type.

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\MigrateBlockContentStubTest.
* Contains \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentStubTest.
*/
namespace Drupal\block_content\Tests\Migrate;
namespace Drupal\Tests\block_content\Kernel\Migrate;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\migrate\MigrateException;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
use Drupal\migrate_drupal\Tests\StubTestTrait;
/**

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\MigrateBlockContentTypeTest.
* Contains \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentTypeTest.
*/
namespace Drupal\block_content\Tests\Migrate;
namespace Drupal\Tests\block_content\Kernel\Migrate;
use Drupal\block_content\BlockContentTypeInterface;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of the basic block content type.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\d6\MigrateBlockContentTest.
* Contains \Drupal\Tests\block_content\Kernel\Migrate\d6\MigrateBlockContentTest.
*/
namespace Drupal\block_content\Tests\Migrate\d6;
namespace Drupal\Tests\block_content\Kernel\Migrate\d6;
use Drupal\block_content\Entity\BlockContent;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade custom blocks.

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\d7\MigrateCustomBlockTest.
* Contains \Drupal\Tests\block_content\Kernel\Migrate\d7\MigrateCustomBlockTest.
*/
namespace Drupal\block_content\Tests\Migrate\d7;
namespace Drupal\Tests\block_content\Kernel\Migrate\d7;
use Drupal\block_content\BlockContentInterface;
use Drupal\block_content\Entity\BlockContent;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of custom blocks.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\book\Tests\Migrate\d6\MigrateBookConfigsTest.
* Contains \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookConfigsTest.
*/
namespace Drupal\book\Tests\Migrate\d6;
namespace Drupal\Tests\book\Kernel\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to book.settings.yml.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\book\Tests\Migrate\d6\MigrateBookTest.
* Contains \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookTest.
*/
namespace Drupal\book\Tests\Migrate\d6;
namespace Drupal\Tests\book\Kernel\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
use Drupal\node\Entity\Node;
/**

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\MigrateCommentStubTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\MigrateCommentStubTest.
*/
namespace Drupal\comment\Tests\Migrate;
namespace Drupal\Tests\comment\Kernel\Migrate;
use Drupal\comment\Entity\CommentType;
use Drupal\migrate\MigrateException;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
use Drupal\migrate_drupal\Tests\StubTestTrait;
use Drupal\node\Entity\NodeType;

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentTest.
*/
namespace Drupal\comment\Tests\Migrate\d6;
namespace Drupal\Tests\comment\Kernel\Migrate\d6;
use Drupal\comment\Tests\CommentTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade comments.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentTypeTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentTypeTest.
*/
namespace Drupal\comment\Tests\Migrate\d6;
namespace Drupal\Tests\comment\Kernel\Migrate\d6;
use Drupal\comment\Entity\CommentType;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade comment type.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableDisplayBase.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentVariableDisplayBase.
*/
namespace Drupal\comment\Tests\Migrate\d6;
namespace Drupal\Tests\comment\Kernel\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Base class for Drupal 6 comment variables to Drupal 8 entity display tests.

View File

@ -2,12 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableEntityDisplayTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentVariableEntityDisplayTest.
*/
namespace Drupal\comment\Tests\Migrate\d6;
namespace Drupal\Tests\comment\Kernel\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentVariableDisplayBase;
/**
* Upgrade comment variables to entity.display.node.*.default.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableEntityFormDisplaySubjectTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentVariableEntityFormDisplaySubjectTest.
*/
namespace Drupal\comment\Tests\Migrate\d6;
namespace Drupal\Tests\comment\Kernel\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade comment subject variable to core.entity_form_display.comment.*.default.yml

View File

@ -2,12 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableEntityFormDisplayTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentVariableEntityFormDisplayTest.
*/
namespace Drupal\comment\Tests\Migrate\d6;
namespace Drupal\Tests\comment\Kernel\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentVariableDisplayBase;
/**
* Upgrade comment variables to core.entity_form_display.node.*.default.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableFieldTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentVariableFieldTest.
*/
namespace Drupal\comment\Tests\Migrate\d6;
namespace Drupal\Tests\comment\Kernel\Migrate\d6;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade comment variables to field.storage.node.comment.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableInstanceTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentVariableInstanceTest.
*/
namespace Drupal\comment\Tests\Migrate\d6;
namespace Drupal\Tests\comment\Kernel\Migrate\d6;
use Drupal\comment\CommentManagerInterface;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
use Drupal\node\Entity\Node;
/**

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentEntityDisplayTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentEntityDisplayTest.
*/
namespace Drupal\comment\Tests\Migrate\d7;
namespace Drupal\Tests\comment\Kernel\Migrate\d7;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of comment display configuration.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentEntityFormDisplaySubjectTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentEntityFormDisplaySubjectTest.
*/
namespace Drupal\comment\Tests\Migrate\d7;
namespace Drupal\Tests\comment\Kernel\Migrate\d7;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of comment form's subject display configuration.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentEntityFormDisplayTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentEntityFormDisplayTest.
*/
namespace Drupal\comment\Tests\Migrate\d7;
namespace Drupal\Tests\comment\Kernel\Migrate\d7;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of comment form display configuration.

View File

@ -2,15 +2,15 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentFieldInstanceTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentFieldInstanceTest.
*/
namespace Drupal\comment\Tests\Migrate\d7;
namespace Drupal\Tests\comment\Kernel\Migrate\d7;
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
use Drupal\Core\Field\FieldConfigInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests creation of comment reference fields for each comment type defined

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentFieldTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentFieldTest.
*/
namespace Drupal\comment\Tests\Migrate\d7;
namespace Drupal\Tests\comment\Kernel\Migrate\d7;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\FieldStorageConfigInterface;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests creation of comment reference fields for each comment type defined

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentTest.
*/
namespace Drupal\comment\Tests\Migrate\d7;
namespace Drupal\Tests\comment\Kernel\Migrate\d7;
use Drupal\comment\CommentInterface;
use Drupal\comment\Entity\Comment;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
use Drupal\node\NodeInterface;
/**

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentTypeTest.
* Contains \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentTypeTest.
*/
namespace Drupal\comment\Tests\Migrate\d7;
namespace Drupal\Tests\comment\Kernel\Migrate\d7;
use Drupal\comment\CommentTypeInterface;
use Drupal\comment\Entity\CommentType;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of comment types from Drupal 7.

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\contact\Tests\Migrate\MigrateContactCategoryTest.
* Contains \Drupal\Tests\contact\Kernel\Migrate\MigrateContactCategoryTest.
*/
namespace Drupal\contact\Tests\Migrate;
namespace Drupal\Tests\contact\Kernel\Migrate;
use Drupal\contact\Entity\ContactForm;
use Drupal\contact\ContactFormInterface;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Migrate contact categories to contact.form.*.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\contact\Tests\Migrate\d6\MigrateContactCategoryTest.
* Contains \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactCategoryTest.
*/
namespace Drupal\contact\Tests\Migrate\d6;
namespace Drupal\Tests\contact\Kernel\Migrate\d6;
use Drupal\contact\Entity\ContactForm;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Migrate contact categories to contact.form.*.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\contact\Tests\Migrate\d6\MigrateContactSettingsTest.
* Contains \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest.
*/
namespace Drupal\contact\Tests\Migrate\d6;
namespace Drupal\Tests\contact\Kernel\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to contact.settings.yml.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\contact\Tests\Migrate\d7\MigrateContactSettingsTest.
* Contains \Drupal\Tests\contact\Kernel\Migrate\d7\MigrateContactSettingsTest.
*/
namespace Drupal\contact\Tests\Migrate\d7;
namespace Drupal\Tests\contact\Kernel\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of Contact settings to configuration.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\dblog\Tests\Migrate\d6\MigrateDblogConfigsTest.
* Contains \Drupal\Tests\dblog\Kernel\Migrate\d6\MigrateDblogConfigsTest.
*/
namespace Drupal\dblog\Tests\Migrate\d6;
namespace Drupal\Tests\dblog\Kernel\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to dblog.settings.yml.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\dblog\Tests\Migrate\d7\MigrateDblogConfigsTest.
* Contains \Drupal\Tests\dblog\Kernel\Migrate\d7\MigrateDblogConfigsTest.
*/
namespace Drupal\dblog\Tests\Migrate\d7;
namespace Drupal\Tests\dblog\Kernel\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Upgrade variables to dblog.settings.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\field\Tests\Migrate\d6\MigrateFieldFormatterSettingsTest.
* Contains \Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldFormatterSettingsTest.
*/
namespace Drupal\field\Tests\Migrate\d6;
namespace Drupal\Tests\field\Kernel\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade field formatter settings to entity.display.*.*.yml.

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\field\Tests\Migrate\d6\MigrateFieldInstanceTest.
* Contains \Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldInstanceTest.
*/
namespace Drupal\field\Tests\Migrate\d6;
namespace Drupal\Tests\field\Kernel\Migrate\d6;
use Drupal\field\Entity\FieldConfig;
use Drupal\link\LinkItemInterface;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
use Drupal\node\Entity\Node;
/**

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\field\Tests\Migrate\d6\MigrateFieldTest.
* Contains \Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldTest.
*/
namespace Drupal\field\Tests\Migrate\d6;
namespace Drupal\Tests\field\Kernel\Migrate\d6;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Migrate fields.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\field\Tests\Migrate\d6\MigrateFieldWidgetSettingsTest.
* Contains \Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldWidgetSettingsTest.
*/
namespace Drupal\field\Tests\Migrate\d6;
namespace Drupal\Tests\field\Kernel\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Migrate field widget settings.

View File

@ -2,16 +2,16 @@
/**
* @file
* Contains \Drupal\field\Tests\Migrate\d7\MigrateFieldFormatterSettingsTest.
* Contains \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldFormatterSettingsTest.
*/
namespace Drupal\field\Tests\Migrate\d7;
namespace Drupal\Tests\field\Kernel\Migrate\d7;
use Drupal\comment\Entity\CommentType;
use Drupal\Core\Database\Database;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
use Drupal\node\Entity\NodeType;
/**

View File

@ -2,15 +2,15 @@
/**
* @file
* Contains \Drupal\field\Tests\Migrate\d7\MigrateFieldInstanceTest.
* Contains \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldInstanceTest.
*/
namespace Drupal\field\Tests\Migrate\d7;
namespace Drupal\Tests\field\Kernel\Migrate\d7;
use Drupal\comment\Entity\CommentType;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\FieldConfigInterface;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
use Drupal\node\Entity\NodeType;
/**

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\field\Tests\Migrate\d7\MigrateFieldInstanceWidgetSettingsTest.
* Contains \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldInstanceWidgetSettingsTest.
*/
namespace Drupal\field\Tests\Migrate\d7;
namespace Drupal\Tests\field\Kernel\Migrate\d7;
use Drupal\Core\Entity\Display\EntityFormDisplayInterface;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Migrate field widget settings.

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\field\Tests\Migrate\d7\MigrateFieldTest.
* Contains \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldTest.
*/
namespace Drupal\field\Tests\Migrate\d7;
namespace Drupal\Tests\field\Kernel\Migrate\d7;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\FieldStorageConfigInterface;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Migrates Drupal 7 fields.

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\field\Tests\Migrate\d7\MigrateViewModesTest.
* Contains \Drupal\Tests\field\Kernel\Migrate\d7\MigrateViewModesTest.
*/
namespace Drupal\field\Tests\Migrate\d7;
namespace Drupal\Tests\field\Kernel\Migrate\d7;
use Drupal\Core\Entity\Entity\EntityViewMode;
use Drupal\Core\Entity\EntityViewModeInterface;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of D7 view modes.

View File

@ -2,18 +2,18 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\EntityFileTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\EntityFileTest.
*/
namespace Drupal\file\Tests\Migrate;
namespace Drupal\Tests\file\Kernel\Migrate;
use Drupal\Core\Site\Settings;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;
use Drupal\migrate\Row;
use Drupal\file\Plugin\migrate\destination\EntityFile;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\entity_test\Entity\EntityTest;
use Drupal\migrate\MigrateException;
use Drupal\simpletest\KernelTestBase;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests the entity file destination plugin.
@ -30,7 +30,7 @@ class EntityFileTest extends KernelTestBase {
public static $modules = array('system', 'entity_test', 'user', 'file');
/**
* @var \Drupal\file\Tests\Migrate\TestEntityFile $destination
* @var \Drupal\Tests\file\Kernel\Migrate\TestEntityFile $destination
*/
protected $destination;
@ -39,9 +39,8 @@ class EntityFileTest extends KernelTestBase {
*/
protected function setUp() {
parent::setUp();
\Drupal::getContainer()->get('stream_wrapper_manager')->registerWrapper('public', 'Drupal\Core\StreamWrapper\PublicStream', StreamWrapperInterface::NORMAL);
$this->destination = new TestEntityFile([]);
$this->destination->streamWrapperManager = \Drupal::getContainer()->get('stream_wrapper_manager');
$this->destination->fileSystem = \Drupal::getContainer()->get('file_system');
$this->installEntitySchema('file');
file_put_contents('/tmp/test-file.jpg', '');
@ -67,18 +66,17 @@ class EntityFileTest extends KernelTestBase {
* An array of file permutations to test.
*/
protected function localFileDataProvider() {
global $base_url;
return [
// Test a local to local copy.
[['filepath' => 'core/modules/simpletest/files/image-test.jpg'], 'public://file1.jpg', TRUE, DRUPAL_ROOT . '/'],
[['filepath' => 'core/modules/simpletest/files/image-test.jpg'], 'public://file1.jpg', TRUE, $this->root . '/'],
// Test a temporary file using an absolute path.
[['filepath' => '/tmp/test-file.jpg'], 'temporary://test.jpg', TRUE, ''],
// Test a temporary file using a relative path.
[['filepath' => 'test-file.jpg'], 'temporary://core/modules/simpletest/files/test.jpg', TRUE, '/tmp/'],
// Test a remote path to local.
[['filepath' => 'core/modules/simpletest/files/image-test.jpg'], 'public://remote-file.jpg', TRUE, $base_url . '/'],
[['filepath' => 'core/modules/simpletest/files/image-test.jpg'], 'public://remote-file.jpg', TRUE, $this->root . '/'],
// Test a remote path to local inside a folder that doesn't exist.
[['filepath' => 'core/modules/simpletest/files/image-test.jpg'], 'public://folder/remote-file.jpg', TRUE, DRUPAL_ROOT . '/'],
[['filepath' => 'core/modules/simpletest/files/image-test.jpg'], 'public://folder/remote-file.jpg', TRUE, $this->root . '/'],
];
}
@ -164,11 +162,11 @@ class EntityFileTest extends KernelTestBase {
$method = new \ReflectionMethod($plugin, 'getDirectory');
$method->setAccessible(TRUE);
$this->assertEqual('public://foo', $method->invoke($plugin, 'public://foo/baz.txt'));
$this->assertEqual('/path/to', $method->invoke($plugin, '/path/to/foo.txt'));
$this->assertSame('public://foo', $method->invoke($plugin, 'public://foo/baz.txt'));
$this->assertSame('/path/to', $method->invoke($plugin, '/path/to/foo.txt'));
// A directory like public:// (no path) needs to resolve to a physical path.
$fs = \Drupal::getContainer()->get('file_system');
$this->assertEqual($fs->realpath(Settings::get('file_public_path')), $method->invoke($plugin, 'public://foo.txt'));
$this->assertSame($fs->realpath('public://'), $method->invoke($plugin, 'public://foo.txt'));
}
/**
@ -179,13 +177,6 @@ class EntityFileTest extends KernelTestBase {
$method = new \ReflectionMethod($plugin, 'isLocationUnchanged');
$method->setAccessible(TRUE);
$public_dir = Settings::get('file_public_path');
// Due to the limitations of realpath(), the source file must exist.
touch('public://foo.txt');
$this->assertTrue($method->invoke($plugin, $public_dir . '/foo.txt', 'public://foo.txt'));
unlink('public://foo.txt');
$temporary_file = '/tmp/foo.txt';
touch($temporary_file);
$this->assertTrue($method->invoke($plugin, $temporary_file, 'temporary://foo.txt'));
@ -257,17 +248,7 @@ class TestEntityFile extends EntityFile {
*/
public $storage;
/**
* @var \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface
*/
public $streamWrapperManager;
/**
* @var \Drupal\Core\File\FileSystemInterface
*/
public $fileSystem;
public function __construct($configuration) {
public function __construct($configuration = []) {
$configuration += array(
'source_base_path' => '',
'source_path_property' => 'filepath',
@ -278,6 +259,8 @@ class TestEntityFile extends EntityFile {
$this->configuration = $configuration;
// We need a mock entity to be passed to save to prevent strict exceptions.
$this->mockEntity = EntityTest::create();
$this->streamWrapperManager = \Drupal::getContainer()->get('stream_wrapper_manager');
$this->fileSystem = \Drupal::getContainer()->get('file_system');
}
/**

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\MigrateFileStubTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\MigrateFileStubTest.
*/
namespace Drupal\file\Tests\Migrate;
namespace Drupal\Tests\file\Kernel\Migrate;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
use Drupal\migrate_drupal\Tests\StubTestTrait;
/**

View File

@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\d6\FileMigrationTestTrait.
* Contains \Drupal\Tests\file\Kernel\Migrate\d6\FileMigrationTestTrait.
*/
namespace Drupal\file\Tests\Migrate\d6;
namespace Drupal\Tests\file\Kernel\Migrate\d6;
/**
* Helper for setting up a file migration test.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\d6\MigrateFileConfigsTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileConfigsTest.
*/
namespace Drupal\file\Tests\Migrate\d6;
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to file.settings.yml.

View File

@ -2,18 +2,18 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\d6\MigrateFileTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileTest.
*/
namespace Drupal\file\Tests\Migrate\d6;
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\Component\Utility\Random;
use Drupal\file\Entity\File;
use Drupal\file\FileInterface;
use Drupal\migrate\Tests\MigrateDumpAlterInterface;
use Drupal\KernelTests\KernelTestBase;
use Drupal\Core\Database\Database;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\simpletest\TestBase;
use Drupal\Tests\migrate\Kernel\MigrateDumpAlterInterface;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* file migration.
@ -90,7 +90,7 @@ class MigrateFileTest extends MigrateDrupal6TestBase implements MigrateDumpAlter
->execute();
Database::getConnection('default', 'migrate')
->update('variable')
->fields(array('value' => serialize($this->getTempFilesDirectory())))
->fields(array('value' => serialize(file_directory_temp())))
->condition('name', 'file_directory_temp')
->execute();
@ -120,10 +120,10 @@ class MigrateFileTest extends MigrateDrupal6TestBase implements MigrateDumpAlter
/**
* {@inheritdoc}
*/
public static function migrateDumpAlter(TestBase $test) {
public static function migrateDumpAlter(KernelTestBase $test) {
// Creates a random filename and updates the source database.
$random = new Random();
$temp_directory = $test->getTempFilesDirectory();
$temp_directory = file_directory_temp();
file_prepare_directory($temp_directory, FILE_CREATE_DIRECTORY);
static::$tempFilename = $test->getDatabasePrefix() . $random->name() . '.jpg';
$file_path = $temp_directory . '/' . static::$tempFilename;

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\d6\MigrateUploadEntityDisplayTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadEntityDisplayTest.
*/
namespace Drupal\file\Tests\Migrate\d6;
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upload entity display.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\d6\MigrateUploadEntityFormDisplayTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadEntityFormDisplayTest.
*/
namespace Drupal\file\Tests\Migrate\d6;
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upload form entity display.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\d6\MigrateUploadFieldTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadFieldTest.
*/
namespace Drupal\file\Tests\Migrate\d6;
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Uploads migration.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\d6\MigrateUploadInstanceTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadInstanceTest.
*/
namespace Drupal\file\Tests\Migrate\d6;
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\field\Entity\FieldConfig;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upload field instance migration.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\d6\MigrateUploadTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadTest.
*/
namespace Drupal\file\Tests\Migrate\d6;
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\file\Entity\File;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
use Drupal\node\Entity\Node;
/**

View File

@ -2,14 +2,15 @@
/**
* @file
* Contains \Drupal\file\Tests\Migrate\d7\MigrateFileTest.
* Contains \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest.
*/
namespace Drupal\file\Tests\Migrate\d7;
namespace Drupal\Tests\file\Kernel\Migrate\d7;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;
use Drupal\file\Entity\File;
use Drupal\file\FileInterface;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Migrates all files in the file_managed table.
@ -27,6 +28,7 @@ class MigrateFileTest extends MigrateDrupal7TestBase {
parent::setUp();
$this->installEntitySchema('file');
$this->container->get('stream_wrapper_manager')->registerWrapper('public', 'Drupal\Core\StreamWrapper\PublicStream', StreamWrapperInterface::NORMAL);
$fs = \Drupal::service('file_system');
// The public file directory active during the test will serve as the
@ -42,7 +44,7 @@ class MigrateFileTest extends MigrateDrupal7TestBase {
'plugin' => 'entity:file',
// Note that source_base_path must include a trailing slash because it's
// prepended directly to the value of the source path property.
'source_base_path' => $fs->realpath($this->publicFilesDirectory) . '/',
'source_base_path' => $fs->realpath('public://') . '/',
// This is set in the migration's YAML file, but we need to repeat it
// here because all the destination configuration must be set at once.
'source_path_property' => 'filepath',

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\filter\Tests\Migrate\d6\MigrateFilterFormatTest.
* Contains \Drupal\Tests\filter\Kernel\Migrate\d6\MigrateFilterFormatTest.
*/
namespace Drupal\filter\Tests\Migrate\d6;
namespace Drupal\Tests\filter\Kernel\Migrate\d6;
use Drupal\filter\Entity\FilterFormat;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to filter.formats.*.yml.

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\filter\Tests\Migrate\d7\MigrateFilterFormatTest.
* Contains \Drupal\Tests\filter\Kernel\Migrate\d7\MigrateFilterFormatTest.
*/
namespace Drupal\filter\Tests\Migrate\d7;
namespace Drupal\Tests\filter\Kernel\Migrate\d7;
use Drupal\filter\Entity\FilterFormat;
use Drupal\filter\FilterFormatInterface;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Upgrade variables to filter.formats.*.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\forum\Tests\Migrate\d6\MigrateForumConfigsTest.
* Contains \Drupal\Tests\forum\Kernel\Migrate\d6\MigrateForumConfigsTest.
*/
namespace Drupal\forum\Tests\Migrate\d6;
namespace Drupal\Tests\forum\Kernel\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to forum.settings.yml.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\forum\Tests\Migrate\d7\MigrateForumSettingsTest.
* Contains \Drupal\Tests\forum\Kernel\Migrate\d7\MigrateForumSettingsTest.
*/
namespace Drupal\forum\Tests\Migrate\d7;
namespace Drupal\Tests\forum\Kernel\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of Forum's variables to configuration.

View File

@ -2,16 +2,16 @@
/**
* @file
* Contains \Drupal\image\Tests\Migrate\d6\MigrateImageCacheTest.
* Contains \Drupal\Tests\image\Kernel\Migrate\d6\MigrateImageCacheTest.
*/
namespace Drupal\image\Tests\Migrate\d6;
namespace Drupal\Tests\image\Kernel\Migrate\d6;
use Drupal\Core\Database\Database;
use Drupal\image\Entity\ImageStyle;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Exception\RequirementsException;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Tests migration of ImageCache presets to image styles.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\image\Tests\Migrate\d7\MigrateImageSettingsTest.
* Contains \Drupal\Tests\image\Kernel\Migrate\d7\MigrateImageSettingsTest.
*/
namespace Drupal\image\Tests\Migrate\d7;
namespace Drupal\Tests\image\Kernel\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of Image variables to configuration.

View File

@ -2,15 +2,15 @@
/**
* @file
* Contains \Drupal\image\Tests\Migrate\d7\MigrateImageStylesTest.
* Contains \Drupal\Tests\image\Kernel\Migrate\d7\MigrateImageStylesTest.
*/
namespace Drupal\image\Tests\Migrate\d7;
namespace Drupal\Tests\image\Kernel\Migrate\d7;
use Drupal\image\Entity\ImageStyle;
use Drupal\image\ImageStyleInterface;
use Drupal\image\ImageEffectBase;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Test image styles migration to config entities.

View File

@ -9,7 +9,7 @@ namespace Drupal\language\Tests\Migrate;
use Drupal\language\ConfigurableLanguageInterface;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* @group migrate_drupal_6

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\language\Tests\Migrate\d7\MigrateLanguageNegotiationSettingsTest.
* Contains \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageNegotiationSettingsTest.
*/
namespace Drupal\language\Tests\Migrate\d7;
namespace Drupal\Tests\language\Kernel\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of language negotiation variables.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\locale\Tests\Migrate\MigrateLocaleConfigsTest.
* Contains \Drupal\Tests\locale\Kernel\Migrate\MigrateLocaleConfigsTest.
*/
namespace Drupal\locale\Tests\Migrate;
namespace Drupal\Tests\locale\Kernel\Migrate;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to locale.settings.yml.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\menu_link_content\Tests\Migrate\MigrateMenuLinkContentStubTest.
* Contains \Drupal\Tests\menu_link_content\Kernel\Migrate\MigrateMenuLinkContentStubTest.
*/
namespace Drupal\menu_link_content\Tests\Migrate;
namespace Drupal\Tests\menu_link_content\Kernel\Migrate;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
use Drupal\migrate_drupal\Tests\StubTestTrait;
/**

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\menu_link_content\Tests\Migrate\d6\MigrateMenuLinkTest.
* Contains \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkTest.
*/
namespace Drupal\menu_link_content\Tests\Migrate\d6;
namespace Drupal\Tests\menu_link_content\Kernel\Migrate\d6;
use Drupal\menu_link_content\Entity\MenuLinkContent;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Menu link migration.

View File

@ -2,16 +2,16 @@
/**
* @file
* Contains \Drupal\menu_link_content\Tests\Migrate\d7\MigrateMenuLinkTest.
* Contains \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkTest.
*/
namespace Drupal\menu_link_content\Tests\Migrate\d7;
namespace Drupal\Tests\menu_link_content\Kernel\Migrate\d7;
use Drupal\Core\Database\Database;
use Drupal\Core\Menu\MenuTreeParameters;
use Drupal\menu_link_content\Entity\MenuLinkContent;
use Drupal\menu_link_content\MenuLinkContentInterface;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Menu link migration.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\menu_ui\Tests\Migrate\MigrateMenuSettingsTest.
* Contains \Drupal\Tests\menu_ui\Kernel\Migrate\MigrateMenuSettingsTest.
*/
namespace Drupal\menu_ui\Tests\Migrate;
namespace Drupal\Tests\menu_ui\Kernel\Migrate;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of menu_ui settings.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrateDumpAlterInterface.
* Contains \Drupal\Tests\migrate\Kernel\MigrateDumpAlterInterface.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\simpletest\TestBase;
use Drupal\KernelTests\KernelTestBase;
/**
* Allows tests to alter dumps after they have loaded.
@ -19,9 +19,9 @@ interface MigrateDumpAlterInterface {
/**
* Allows tests to alter dumps after they have loaded.
*
* @param \Drupal\simpletest\TestBase $test
* @param \Drupal\KernelTests\KernelTestBase $test
* The test that is being run.
*/
public static function migrateDumpAlter(TestBase $test);
public static function migrateDumpAlter(KernelTestBase $test);
}

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrateEmbeddedDataTest.
* Contains \Drupal\Tests\migrate\Kernel\MigrateEmbeddedDataTest.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\migrate\Plugin\Migration;
use Drupal\simpletest\KernelTestBase;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests the EmbeddedDataSource plugin.

View File

@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrateEventsTest.
* Contains \Drupal\Tests\migrate\Kernel\MigrateEventsTest.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\migrate\Event\MigrateImportEvent;
use Drupal\migrate\Event\MigrateMapDeleteEvent;
@ -16,7 +16,7 @@ use Drupal\migrate\MigrateMessage;
use Drupal\migrate\Event\MigrateEvents;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\Plugin\Migration;
use Drupal\simpletest\KernelTestBase;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests events fired on migrations.

View File

@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrateInterruptionTest.
* Contains \Drupal\Tests\migrate\Kernel\MigrateInterruptionTest.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\migrate\Plugin\Migration;
use Drupal\migrate\Event\MigratePostRowSaveEvent;
@ -13,7 +13,7 @@ use Drupal\migrate\MigrateMessage;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Event\MigrateEvents;
use Drupal\migrate\MigrateExecutable;
use Drupal\simpletest\KernelTestBase;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests interruptions triggered during migrations.

View File

@ -2,18 +2,18 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrateMessageTest.
* Contains \Drupal\Tests\migrate\Kernel\MigrateMessageTest.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\KernelTests\KernelTestBase;
use Drupal\migrate\Plugin\Migration;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Event\MigrateEvents;
use Drupal\migrate\Event\MigrateIdMapMessageEvent;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\MigrateMessageInterface;
use Drupal\simpletest\KernelTestBase;
/**
* Tests whether idmap messages are sent to message interface when requested.

View File

@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrateRollbackTest.
* Contains \Drupal\Tests\migrate\Kernel\MigrateRollbackTest.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\migrate\Plugin\Migration;
use Drupal\migrate\MigrateExecutable;
@ -13,6 +13,7 @@ use Drupal\migrate\Plugin\MigrateIdMapInterface;
use Drupal\migrate\Row;
use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\Entity\Vocabulary;
use Drupal\Tests\migrate\Kernel\MigrateTestBase;
/**
* Tests rolling back of imports.

View File

@ -2,17 +2,17 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrateSkipRowTest.
* Contains \Drupal\Tests\migrate\Kernel\MigrateSkipRowTest.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\KernelTests\KernelTestBase;
use Drupal\migrate\MigrateMessage;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\Plugin\MigrateIdMapInterface;
use Drupal\migrate\Plugin\Migration;
use Drupal\simpletest\KernelTestBase;
/**
* Tests row skips triggered during hook_migrate_prepare_row().

View File

@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrateStatusTest.
* Contains \Drupal\Tests\migrate\Kernel\MigrateStatusTest.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\migrate\Plugin\Migration;
use Drupal\migrate\Plugin\MigrationInterface;

View File

@ -2,17 +2,17 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrateTestBase.
* Contains \Drupal\Tests\migrate\Kernel\MigrateTestBase.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\Core\Database\Database;
use Drupal\KernelTests\KernelTestBase;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\MigrateMessageInterface;
use Drupal\migrate\Plugin\MigrateIdMapInterface;
use Drupal\migrate\Row;
use Drupal\simpletest\KernelTestBase;
/**
* Creates abstract base class for migration tests.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\migrate\Tests\MigrationTest.
* Contains \Drupal\Tests\migrate\Kernel\MigrationTest.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\KernelTests\KernelTestBase;
use Drupal\migrate\Plugin\Migration;
use Drupal\simpletest\KernelTestBase;
/**
* Tests the migration plugin.
@ -29,7 +29,7 @@ class MigrationTest extends KernelTestBase {
/**
* Tests Migration::set().
*
* @covers ::set()
* @covers ::set
*/
public function testSetInvalidation() {
$migration = new Migration([], uniqid(), [

View File

@ -2,13 +2,14 @@
/**
* @file
* Contains \Drupal\migrate\Tests\SqlBaseTest.
* Contains \Drupal\Tests\migrate\Kernel\SqlBaseTest.
*/
namespace Drupal\migrate\Tests;
namespace Drupal\Tests\migrate\Kernel;
use Drupal\migrate\Plugin\migrate\source\TestSqlBase;
use Drupal\Core\Database\Database;
use Drupal\Tests\migrate\Kernel\MigrateTestBase;
/**
* Tests the functionality of SqlBase.

View File

@ -1,25 +0,0 @@
<?php
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase.
*/
namespace Drupal\migrate_drupal\Tests\d7;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
/**
* Base class for Drupal 7 migration tests.
*/
abstract class MigrateDrupal7TestBase extends MigrateDrupalTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this->loadFixture(__DIR__ . '/../../../tests/fixtures/drupal7.php');
}
}

View File

@ -2,14 +2,13 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\MigrateDrupalTestBase.
* Contains \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase.
*/
namespace Drupal\migrate_drupal\Tests;
namespace Drupal\Tests\migrate_drupal\Kernel;
use Drupal\Core\Database\Database;
use Drupal\migrate\Tests\MigrateTestBase;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
use Drupal\Tests\migrate\Kernel\MigrateTestBase;
/**
* Base class for Drupal migration tests.

View File

@ -2,13 +2,14 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\EntityContentBaseTest.
* Contains \Drupal\Tests\migrate_drupal\Kernel\d6\EntityContentBaseTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\Tests\migrate_drupal\Kernel\d6;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
use Drupal\user\Entity\User;
/**

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase.
* Contains \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\Tests\migrate_drupal\Kernel\d6;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
/**
* Base class for Drupal 6 migration tests.
@ -33,7 +33,7 @@ abstract class MigrateDrupal6TestBase extends MigrateDrupalTestBase {
*/
protected function setUp() {
parent::setUp();
$this->loadFixture( __DIR__ . '/../../../tests/fixtures/drupal6.php');
$this->loadFixture( __DIR__ . '/../../../fixtures/drupal6.php');
}
/**

View File

@ -0,0 +1,25 @@
<?php
/**
* @file
* Contains \Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase.
*/
namespace Drupal\Tests\migrate_drupal\Kernel\d7;
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
/**
* Base class for Drupal 7 migration tests.
*/
abstract class MigrateDrupal7TestBase extends MigrateDrupalTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this->loadFixture(__DIR__ . '/../../../fixtures/drupal7.php');
}
}

View File

@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\dependencies\MigrateDependenciesTest.
* Contains \Drupal\Tests\migrate_drupal\Kernel\dependencies\MigrateDependenciesTest.
*/
namespace Drupal\migrate_drupal\Tests\dependencies;
namespace Drupal\Tests\migrate_drupal\Kernel\dependencies;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Ensure the consistency among the dependencies for migrate.

View File

@ -2,10 +2,11 @@
/**
* @file
* Contains \Drupal\node\Tests\Migrate\d6\MigrateNodeRevisionTest.
* Contains \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeRevisionTest.
*/
namespace Drupal\node\Tests\Migrate\d6;
use Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeTestBase;
/**
* Node content revisions migration.

View File

@ -7,7 +7,7 @@
namespace Drupal\node\Tests\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests the d7_node node deriver.

View File

@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\node\Tests\Migrate\MigrateNodeStubTest.
* Contains \Drupal\Tests\node\Kernel\Migrate\MigrateNodeStubTest.
*/
namespace Drupal\node\Tests\Migrate;
namespace Drupal\Tests\node\Kernel\Migrate;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
use Drupal\migrate_drupal\Tests\StubTestTrait;
use Drupal\node\Entity\NodeType;

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\node\Tests\Migrate\d6\MigrateNodeBundleSettingsTest.
* Contains \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeBundleSettingsTest.
*/
namespace Drupal\node\Tests\Migrate\d6;
namespace Drupal\Tests\node\Kernel\Migrate\d6;
use Drupal\Core\Field\Entity\BaseFieldOverride;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
use Drupal\node\Entity\Node;
/**

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\node\Tests\Migrate\d6\MigrateNodeConfigsTest.
* Contains \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeConfigsTest.
*/
namespace Drupal\node\Tests\Migrate\d6;
namespace Drupal\Tests\node\Kernel\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to node.settings.yml.

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\node\Tests\Migrate\d6\MigrateNodeSettingPromoteTest.
* Contains \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeSettingPromoteTest.
*/
namespace Drupal\node\Tests\Migrate\d6;
namespace Drupal\Tests\node\Kernel\Migrate\d6;
use Drupal\Core\Field\Entity\BaseFieldOverride;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* @group migrate_drupal_6

View File

@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\node\Tests\Migrate\d6\MigrateNodeSettingStickyTest.
* Contains \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeSettingStickyTest.
*/
namespace Drupal\node\Tests\Migrate\d6;
namespace Drupal\Tests\node\Kernel\Migrate\d6;
use Drupal\Core\Field\Entity\BaseFieldOverride;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* @group migrate_drupal_6

Some files were not shown because too many files have changed in this diff Show More