diff -u b/core/modules/migrate_drupal/src/Tests/d6/MigrateCustomBlockTest.php /dev/null
--- b/core/modules/migrate_drupal/src/Tests/d6/MigrateCustomBlockTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
- 'Migrate custom blocks.',
- 'description' => 'Upgrade custom blocks.',
- 'group' => 'Migrate Drupal',
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function setUp() {
- parent::setUp();
- $this->prepareIdMappings(array(
- 'd6_filter_format' => array(
- array(array(2), array('full_html'))
- )
- ));
- /** @var \Drupal\migrate\entity\Migration $migration */
- $migration = entity_load('migration', 'd6_custom_block');
- $dumps = array(
- $this->getDumpDirectory() . '/Drupal6Box.php',
- );
- $this->prepare($migration, $dumps);
- $executable = new MigrateExecutable($migration, $this);
- $executable->import();
- }
-
- /**
- * Tests the Drupal 6 custom block to Drupal 8 migration.
- */
- public function testBlockMigration() {
- /** @var BlockContent $block */
- $block = entity_load('block_content', 1);
- $this->assertEqual('My block 1', $block->label());
- $this->assertEqual(1, $block->getRevisionId());
- $this->assertTrue(REQUEST_TIME <= $block->getChangedTime() && $block->getChangedTime() <= time());
- $this->assertEqual(Language::LANGCODE_NOT_SPECIFIED, $block->language()->id);
- $this->assertEqual('
My first custom block body
', $block->body->value);
- $this->assertEqual('full_html', $block->body->format);
-
- $block = entity_load('block_content', 2);
- $this->assertEqual('My block 2', $block->label());
- $this->assertEqual(2, $block->getRevisionId());
- $this->assertTrue(REQUEST_TIME <= $block->getChangedTime() && $block->getChangedTime() <= time());
- $this->assertEqual(Language::LANGCODE_NOT_SPECIFIED, $block->language()->id);
- $this->assertEqual('My second custom block body
', $block->body->value);
- $this->assertEqual('full_html', $block->body->format);
- }
-
-}
only in patch2:
unchanged:
--- /dev/null
+++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockContentTest.php
@@ -0,0 +1,75 @@
+ 'Migrate custom blocks.',
+ 'description' => 'Upgrade custom blocks.',
+ 'group' => 'Migrate Drupal',
+ );
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setUp() {
+ parent::setUp();
+ $this->prepareIdMappings(array(
+ 'd6_filter_format' => array(
+ array(array(2), array('full_html'))
+ )
+ ));
+ /** @var \Drupal\migrate\entity\Migration $migration */
+ $migration = entity_load('migration', 'd6_custom_block');
+ $dumps = array(
+ $this->getDumpDirectory() . '/Drupal6Box.php',
+ );
+ $this->prepare($migration, $dumps);
+ $executable = new MigrateExecutable($migration, $this);
+ $executable->import();
+ }
+
+ /**
+ * Tests the Drupal 6 custom block to Drupal 8 migration.
+ */
+ public function testBlockMigration() {
+ /** @var BlockContent $block */
+ $block = entity_load('block_content', 1);
+ $this->assertEqual('My block 1', $block->label());
+ $this->assertEqual(1, $block->getRevisionId());
+ $this->assertTrue(REQUEST_TIME <= $block->getChangedTime() && $block->getChangedTime() <= time());
+ $this->assertEqual(Language::LANGCODE_NOT_SPECIFIED, $block->language()->id);
+ $this->assertEqual('My first custom block body
', $block->body->value);
+ $this->assertEqual('full_html', $block->body->format);
+
+ $block = entity_load('block_content', 2);
+ $this->assertEqual('My block 2', $block->label());
+ $this->assertEqual(2, $block->getRevisionId());
+ $this->assertTrue(REQUEST_TIME <= $block->getChangedTime() && $block->getChangedTime() <= time());
+ $this->assertEqual(Language::LANGCODE_NOT_SPECIFIED, $block->language()->id);
+ $this->assertEqual('My second custom block body
', $block->body->value);
+ $this->assertEqual('full_html', $block->body->format);
+ }
+
+}