function MigrateBlockTest::testBlockMigration

Same name in this branch
  1. 11.x core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockTest::testBlockMigration()
  2. 11.x core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockTest::testBlockMigration()
Same name in other branches
  1. 9 core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateBlockTest::testBlockMigration()
  2. 9 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockTest::testBlockMigration()
  3. 9 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockTest::testBlockMigration()
  4. 8.9.x core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockTest::testBlockMigration()
  5. 8.9.x core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockTest::testBlockMigration()
  6. 10 core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php \Drupal\Tests\forum\Kernel\Migrate\d6\MigrateBlockTest::testBlockMigration()
  7. 10 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockTest::testBlockMigration()
  8. 10 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockTest::testBlockMigration()

Tests the block migration.

File

core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php, line 102

Class

MigrateBlockTest
Tests migration of forum blocks.

Namespace

Drupal\Tests\forum\Kernel\Migrate\d6

Code

public function testBlockMigration() {
    // Check forum block settings.
    $settings = [
        'id' => 'forum_active_block',
        'label' => '',
        'provider' => 'forum',
        'label_display' => '0',
        'block_count' => 3,
        'properties' => [
            'administrative' => '1',
        ],
    ];
    $this->assertEntity('forum', [], 'sidebar', 'olivero', -8, $settings);
    $settings = [
        'id' => 'forum_new_block',
        'label' => '',
        'provider' => 'forum',
        'label_display' => '0',
        'block_count' => 4,
        'properties' => [
            'administrative' => '1',
        ],
    ];
    $this->assertEntity('forum_1', [], 'sidebar', 'olivero', -9, $settings);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.